all groups > sql server dts > february 2005 > threads for february 22 - 28, 2005
Filter by week: 1 2 3 4
Exporting data to Excel
Posted by Yuelin Liang at 2/28/2005 10:26:08 PM
Hi
As a test, I was trying to export the pubs database to Excel. There is
always one
table I couldn't export: the pub_info table. Others were OK. The error I got
was:
"The Microsoft Jet database engine could not find the object 'pub_info'.
Make sure the object exists and that you spell i... more >>
so slow DDQ update statement...
Posted by Jéjé at 2/28/2005 12:48:56 PM
Hi,
I have a dts package which is very slow to update a table.
I'm using a DDQ where in input I send some rows to update, and I call a
storedprocedure to do my update.
1 update takes 2 to 3 seconds!!!! (i can have more then 1000 updates)
* I have destroyed my indexes
* I have disabled t... more >>
Send Global Variable as a parameter in Execute Process Task
Posted by LP at 2/28/2005 12:19:02 PM
Hello All,
I'm using the winzip cmdline tool through the Execute Process task to zip
files when I'm finished loading them through DTS. I will have this situation
that complicates things.
When I bring the flat file into the DTS process I strip out part of the file
name (the date) and t... more >>
Data export with relationships
Posted by Yuelin Liang at 2/28/2005 12:14:52 PM
Hi all
Is there a way of exporting database as well as the relationships of the
tables? I am trying to export data to Access or Excel.
Thanks
Yuelin
... more >>
Import/Export Packages
Posted by Rafa® at 2/28/2005 12:05:02 PM
I would like to know if there's a simples way to import/export (copy) DTS
packages between servers, because I would transfer my current packages to new
production Server... There's no DTS Task to copy Packages like Jobs or
Users...
Restoring MSDB database from the other server works, but I ... more >>
DTS text file source is using old data
Posted by Don at 2/28/2005 11:12:40 AM
I have a DTS package that is called by a VB.NET program. This DTS
package uses a text file connection as it's source and the file this
source is based on is created by the VB program.
It seems that the DTS package is using a cached version of the text
file.
I had a text file with 344 recor... more >>
Dynamically rename Text File Export with Header / Footer
Posted by Rich at 2/28/2005 7:05:06 AM
Hi,
A bit of a variation on the exporting text files with header & footer info
theme. I currently have a package that exports data from a sql table to a
text file and an ActiveX script that renames the Text File destination
connection at run-time to include the date so that it gets exported... more >>
Permissions Nightmare. Urgent
Posted by Aashu at 2/28/2005 6:57:26 AM
Please help !
We have a DTS which loads files using FTP to another
server. This will be used by app groups and will be run
via click of button using sp_start_job,
Somehow the userid running the job gets "not sysadmin to
run cmdshell.." Top fix that, we granted it to execute the
xp_cmd... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Free XML ODBC Drivers?
Posted by icebold54 NO[at]SPAM hotmail.com at 2/28/2005 5:04:14 AM
Hi to everybody, I am a newbie who is trying to import data from and
XML file into a table in SQL Server 2000. I've reading all the MS
information about the SQLXML's 'XML Bulk Load' and it seems that this
feature can only be accesible through the 'DTS Designer' in the
Enterprise Manager.
I've... more >>
commit point
Posted by Akber at 2/28/2005 1:47:02 AM
Is there any option in the DTS through which I can tell the SQL Execute task
to commit transaction after every 1000 records.
--
Thanks
Akber.... more >>
new arithabort error after some months without this error...
Posted by Jéjé at 2/27/2005 3:02:00 PM
Hi,
Today I received an "Arithabort" error in some DTS packages, but not all.
I have changed the arithabort option of my target database and all works
fine.
But I want to know what's append
Because its the first time I see this error and the DTS packages are the
sames. (my DTS packages h... more >>
DTS package from scheduled job fails
Posted by Christian Risager at 2/26/2005 3:59:01 AM
Hi there.
I have implementet a koncept in SQLserver to import data
from an Access-database using DTS-package. There is no
problem starting the package from SQLserver Enterprise
mangager.
However, I want to execute the package from a third party
sql-interface, and therefore I made at schedu... more >>
Execute Package Task fails if called from VB
Posted by chambersdon NO[at]SPAM hotmail.com at 2/25/2005 2:46:46 PM
I have a VB.NET application that needs to execute a DTS package.
This package includes an 'Execute Package Task' as one of its steps. I
cannot get the 'Execute Package Task' step to run.
My package runs fine if I take out this package.
Both packages run fine if run separately.
The packages... more >>
Last Version Package
Posted by Kyky at 2/25/2005 2:38:37 PM
How can I be shure to execute the last version of a dts1 using the task
execute package included in dts2? If I modify dts1, dts2 execute the
previous version of dts1. Can I use an ActiveX code in dts2?
Thnx
... more >>
Want to Call DTS Package....
Posted by Patrick at 2/25/2005 1:48:22 PM
Hi All
I want to call DTS Package from Job. How, can I do that ?
First DTS Package transfers data and then it calculates on that imported
data.
Wating for reply
Silent Ocean
... more >>
how do I globally change the database connection
Posted by Chris Marsh at 2/25/2005 12:49:03 PM
Hi,
I have created a DTS package that I am running from our SQL server. It
works really well however I would like to be able to rename the both the
starting Visual FoxPro Database (importing from) and the destination SQL
database (importing to) globally. This way I could move the DTS file... more >>
Visual Basic - Bulid DTS Packages on the Fly
Posted by bj richard at 2/25/2005 11:03:03 AM
Is it possible to have a VB application that allows a user to created a DTS
package from selection made on the VB form. The developer is creating
timesheet exports for different clients. There are many to create. The DTS
package includes connections to dattabases, excel spreadsheets,emailin... more >>
import and archiving with dts
Posted by Jason at 2/25/2005 9:36:29 AM
Hi,
I was wondering how i could use dts to import accessfiles and then archive
them to another folder. I've read some examples on sqldts.com but i still
can't figure it out.
Basically this is what i want:
- import an accessfile which has a name like this <companyname>_<today's
date>.... more >>
Unable to get MAPI profiles
Posted by Steve Skidmore at 2/25/2005 8:13:08 AM
Hello All,
I am trying to use a send mail task in a DTS job, when I add the task to the
designer the following error dialog appears:
Title = DTS Designer Error
Msg = Unable to get MAPI profiles.
If I click Ok the dialog goes away and the send mail properties are
displayed but the p... more >>
Login failed for user 'sa'
Posted by x-rays at 2/25/2005 5:45:02 AM
Hello all,
I' ve created a dts package to import some data from another data source.
I've created an SQL connection and specify the provider 'Microsoft OLE DB
Provider for SQL Server'. I parameterize the ServerName, User, Pwd and DBName
and set their values using an activex script. When I r... more >>
Callig package from main package
Posted by chinna jambu via SQLMonster.com at 2/25/2005 4:43:17 AM
Hi
I have active x Script in main package which calls send mailtask in another
package. both packages are in the same database.
can any one help me by providing an example. i am new to Active x Scripting.
thanks
--
Message posted via http://www.sqlmonster.com... more >>
DTS package works on all clients cept one
Posted by Jeff Horvath at 2/24/2005 8:27:25 PM
I am attempting to debug the "number of failing rows
exceeds the maximum specified" error on an xpp sp2 client
with client tools with sp3a.
The DTS package copies rows from an excel document into a
mssql db. I dont want to format the system, but have
loaded client tools on another clean s... more >>
Global variable results
Posted by gordo at 2/24/2005 7:50:43 PM
Hi
I have a SQL Task which simply selects a row from a table based on an input
parameter. The result of this is then assigned to a global varaiable.
How do I then run another task based on the result of the global variable
i.e. if variable has a value then run task else if 0 then skip to ne... more >>
DTS File Creation
Posted by Tim at 2/24/2005 3:58:30 PM
"I need to create a file with static header info (first record), result
set from a query and static trailer info (last record). Here is an
example:
Header Info (Record 1)
Results from query (record 2)
Results from query (record 3)
....
Trailer Info (Record n)
What is the best way to do t... more >>
Databasename Variable
Posted by Gabe Matteson at 2/24/2005 1:47:03 PM
declare @rc int
exec @rc = master.dbo.xp_smtp_sendmail
@FROM = N'SRVDB1@mydomain.com',
@TO = N'gmatteson@mydomain',
@priority = N'HIGH',
@subject = N'Process Success',
@message = N'Database Backup Succeeded.', - Rather than putting Database
Backup Succeeded, I would like to put "@... more >>
DTS Excel Import Filename
Posted by Tom Gaughan at 2/24/2005 1:35:56 PM
Is there any way to pass a file name to a DTS Package? I'm using a
DTS.Package2 object in VB6 (using LoadFromSQLServer etc.). The package
imports an Excel file into a SQL2000 table. When I created the DTS import I
specified a file name, but I'd like to be able to override it in code.
Thanks-... more >>
SQL Send Mail Problem
Posted by Gabe Matteson at 2/24/2005 12:51:36 PM
Running Windows 2003 Server with SQL Server 2000 w/SP3a
This is the message I recieve when I go to add the profile to the server and
click Test. Any ideas? Thanks,
- Gabe
xp_test_mapi_profile failed with mail error 0x80040111
... more >>
Data Transfer update only
Posted by Dannie Chan at 2/24/2005 12:37:02 PM
Hi,
I try to setup the data transfer package from DBIII to SQL2000.
How can I setup the DTS package tansfer only the new data daily?
Thanks,... more >>
DTS global variable / data source (scope?) question
Posted by pauly at 2/24/2005 11:03:28 AM
I have a DTS package that imports a text file. The test file it import
depends on a global variable that an activex script looks up while its
running (it changes the source of the Text File (Source) connection).
It all works fine.
My question is this - if more than 1 client accesses the DTS... more >>
Need OPCON job running DTSRUN to overwrite OPCON job output file
Posted by khan_salim at 2/24/2005 10:59:05 AM
Using SQL Server 2000.
Running the following DTSRUN line in OPCON job:
DTSRUN /N"XML Data Load 1" /E /SDEV1 /L\\OPCONJOBS\OUTPUT\XML01.out
The file XML01.out is growing larger and larger due to the DTSRUN output
getting appended to this file rather than overwriting it.
1. Is there a DTSRU... more >>
Need to overwrite text file, not append to file in DTS package...h
Posted by khan_salim at 2/24/2005 10:47:02 AM
Using SQL Server 2000
DTS package runs a simple query from a SQL Server table in the
'Transform data task' object and then writes results to a text file defined
in tab 'Destination' under 'Table name:'.
Each time the DTS package is run the text file 'filename.txt' is appended
with new ... more >>
DTS/Schedule Jobs monitoring
Posted by mandla mkhwanazi via SQLMonster.com at 2/24/2005 10:23:02 AM
Is there a way to monitor all scheduled DTS jobs and restart the jobs
automatically when it faillS. If the job continues failing after being
restarted for several times then it must notify the responsible person. Is
there a tool that i can use with SQL to do this?
--
Message posted via http:... more >>
importing Tables from one SQLDB to another SQLDB, HOWTO import the PrimaryKey property?
Posted by Michael Brockhoff at 2/24/2005 9:58:06 AM
Hello NG,
i really like the DTS, but why one earth cant the
DTS copy the primary key property?
I always have to edit the importetd tables manually and set
the primary key propertie on the correct column.
Why does this information get lost?
It cant be so hard to check if a column has the ... more >>
DTS package log question
Posted by Terry at 2/24/2005 9:43:29 AM
I have a DTS package that is doing some unexpected things.
I know the log shows which steps in the package were executed.
Is there any way to track more detailed information like what the Global
variables are at each step or what lines of code are executed
in an ActiveX script.
Terry
... more >>
Parse Text File before Import
Posted by CB at 2/24/2005 9:35:28 AM
I am using a DTS package to import a text file that contains weblogs from
our firewall. I need to parse out one field before the import in sql2k. The
field contains the date yyyy-mm-dd 00:00:00. I would like to move the time
00:00:00 to a new column in the sql db.
Can any provide examples t... more >>
Problem reading data from Excel spreadsheet from DTS
Posted by JeffC at 2/24/2005 9:03:04 AM
I've been using DTS to import data from Excel into a database (both SQLServer
and Oracle). I've run across a problem recently in a couple of different
spreadsheets where a cell that has data in it is being read as NULL from DTS.
This happens both when I write a SQL query for the source, or j... more >>
First row of the text file
Posted by Yuliaan at 2/24/2005 6:41:04 AM
Hi! I need to import a text file that has the date in the first row, and some
data columns in other rows. That date I need to insert in the same table for
every imported record. What is the best way to do that?... more >>
How to Import Muliple Text Files to same table ?
Posted by Geoff Dutch at 2/24/2005 4:07:03 AM
Hi!
I was pointed in this direction from microsoft.public.windows.server.sbs
I have a question about automating importing text files into a table in SQL
Server. I`m a complete SQL server "noob" but I am looking for a way to
import all
the data from a set of text files in a folder, then t... more >>
import jpgs into database by DTS
Posted by Franky at 2/24/2005 3:07:01 AM
I' am importing jpg-files into a SQL2K database.
Currently I am using a staging table in wich I import the jpg's using
textcopy.
(first create the records with a placeholder in the image-field, then import
the jpg using textcopy)
Then I use a stored procedure in wich I make alle the neces... more >>
LoadFromSqlServer problem...
Posted by steffi at 2/23/2005 7:51:35 PM
hi,
By following the kb
http://support.microsoft.com/default.aspx?scid=kb;en-us;321525
If I don't set any globalVariable , then LoadFromSqlSever and execute
method is fine.
AfterI add some scripts to set a gloablevariable value , I get errorcode
= - 2147220482 on the setp the variable f... more >>
Need to create primary key, can I use the DTS wizard?
Posted by carroll at 2/23/2005 6:55:06 PM
I am just starting with DTS. I am trying to import a text file into a table.
In this text file the field that maps to the primary key in the SQL table has
non-unique data (every row has this value set to 0).
So far I have only been using the wizard to try to get this done, but I
can't see ... more >>
How can I call a VB.NET class from a DTS package?
Posted by chambersdon NO[at]SPAM hotmail.com at 2/23/2005 3:22:17 PM
I have a VB.NET class that I need to call from a DTS package. I need
to set a couple of properties and then call a method.
I've tried the activeX Script task but I can't seem to get it to work.
I used CreateObject but I think it wants a COM component.
Don
... more >>
ActiveX and Instance name
Posted by Kyky at 2/23/2005 2:18:26 PM
following a previous post...
Hi,
how can i retrieve in an ActiveX the SQLServer instance name where the DTS
is located.
Thnx
Kyky
... more >>
retrieving an instance name
Posted by Kyky at 2/23/2005 12:40:57 PM
In an DTS ActiveX I need to open an ADODB connection whose Data Source shoud
be the SQLServer instance where the DTS is located.
How can I retrive the instance name?
Thnx
Kyky
... more >>
perform a two dimensional lookup
Posted by pm at 2/23/2005 11:49:20 AM
How can i perform a two dimensional lookup through DTS. Therefore I
want to pick a value from a table by providing primary key and column
name. My table is having 50 columns. I can implement the functionality
using 50 lookups but that seems like a bad idea.
Thanks,
PM
... more >>
DTS Import from Excel
Posted by Tom Gaughan at 2/23/2005 11:46:58 AM
I'm trying to import an Excel 2000 file into a SQL Server 2000 table. The
Excel file has 4 columns. The database table mirrors these columns but has
an Identity field (called ID) which I have as PK to satisfy replication
requirements. Also there is the replication field that defaults to newid(... more >>
Import/Export database to Oracle.
Posted by RPK at 2/23/2005 10:41:01 AM
When I use Import/Export feature of SQL Server 2000 to migrate SQL Server
2000 database to Oracle, SQL Server converts all table names to something
like this:
"table name", instead of just table names without any quotes.
Because of this when the tables are successfully migrated to Oracle and... more >>
Using DTS to Insert 1 Second record for every second in a month?
Posted by plau011 NO[at]SPAM hotmail.com at 2/23/2005 9:50:04 AM
Hi everyone,
I am somewhat of a newbie to DTS, but was wondering if there is a way
to have DTS insert new data into a SQLServer table:
CREATE TABLE SecMonthTbl (
[SecMonth] [datetime] NOT NULL
)
A record for every second between two dates. Most likely be a month.
Don't ask why I need th... more >>
DTS and HTML File
Posted by Sebastien at 2/23/2005 5:01:04 AM
Hello, I want to use a HTML File connexion but I don't know how to configure
this connection. Do you have an example ? Thank's.... more >>
ActiveX Vb Script
Posted by chinna jambu via SQLMonster.com at 2/23/2005 3:08:17 AM
can any one help me with the below script.
I am getting error like
Error code = 0
Error Source = ADODB.recordset
Error Description : operation is not allowed when the object is closed.
error on line 15
Operation is not allowed when the object is closed
*****
Function Main()
Dim cnn, ... more >>
DTS workflow failure
Posted by Microlong at 2/22/2005 9:59:03 PM
I create a package to call other packages in one workflow ,it's very similar
as below:
Steps----on success--->step2----on success---->step3
-
-----on failure--->step4
for step2, if it runs on success, step3 will run cont... more >>
looping, importing
Posted by Andre at 2/22/2005 2:25:59 PM
I downloaded a sample package from sqldts that is exactly what I needed -
http://www.sqldts.com/default.aspx?246. I have one question about it, and
ActiveX tasks in general.
In step 6, it has the loop returning to "set stpbegin =
pkg.Steps("DTSStep_DTSActiveScriptTask_3")". How do I know ... more >>
csv to multiple tables
Posted by Ali-R at 2/22/2005 1:58:30 PM
I have a CSV file like this:
"fieldValue1","fieldValue2","fieldValue3","fieldValue4"
I'd like to create a DTS package which dose the following operation on the
CSV file:
1) Inserts "fieldValue1" into **Table1**.field1
2) Inserts "fieldValue2" into **Table2**.field2
1) Inserts "fieldValu... more >>
Linked SQL Server to Access
Posted by André at 2/22/2005 12:07:05 PM
Hi, I now this question has been posted a few times, but I did not find an
answer.
I have a linked server on my SQL server to an access database via a mapped
drive on a domain. (2 computers, one with SQL server and the other has the
access database)
When I log in to query analyzer using ... more >>
Money data type from Oracle
Posted by WL UK at 2/22/2005 11:53:03 AM
Hi all
I'm trying to bring a monetary value from an Oracle server into an SQL 2000
environment. In the oracle table the monetary value displays with two
decimal places but when viewed in the SQL table it has rounded to no decimal
places. It does not matter what data type I use when bringing... more >>
Get/set progress dialog properties using SQLNamespace object
Posted by camler at 2/22/2005 11:19:05 AM
Does anyone have any idea if you can get/set the properties of an active DTS
package progress dialog box using the SQLNamespace object from within another
DTS package executed after the dialog is opened?... more >>
DTSHelper ActiveX DLL
Posted by G Stark at 2/22/2005 8:58:58 AM
I extracted some VB script from the WROX book "SQL Server 2000 DTS" to get
error information. The rest of the script works fine. The problem segment
gets a readble form of the
error.
How to fix this? The error message I get is:
Error Code: 0
Error Source= Microsoft VBScript runtime... more >>
Exception management and Logging for DTS
Posted by Ali-R at 2/22/2005 8:26:29 AM
I'm using a .Net application to execute DTS packages within Sqlserver,I need
to have very customizable and powerful Exception maangement systems which
loggs different issues happend in the DTS package with my own errorCode. Can
somebody give me some ideas?
Thanks
... more >>
Inserting rows in to a table
Posted by chinna jambu via SQLMonster.com at 2/22/2005 4:17:23 AM
I created execute sql task with the below insert statement.
Insert into properties(PROPERTYID)
select propcode from htcrepr
where propcode not in (select propertyid from properties)
group by propcode
And I also created sql Mail task , the workflow is success.
the problem is the workf... more >>
DTS
Posted by fabius at 2/22/2005 2:49:03 AM
Can I run a DTS from a store procedure using NT authentication?
Using rundts , what's the syntax of this command?
... more >>
|