Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
all groups > sql server dts > june 2005

Filter by week: 1 2 3 4 5

Exporting data to Excel from a DTS
Posted by Alex at 6/30/2005 2:57:26 PM
Hi all, I've seen this noted in many posts, but nothing I've checked out gives me any clue on how to do this. Basically as my topic says, I have a DTS and I simply need to export some data from a table in MS SQL 2000 to an Excel spreadsheet. I also need to automate this process so it can r...more >>


SSIS - How to use the old DTSStepScriptResult_DontExecuteTask?
Posted by Guruper at 6/30/2005 2:44:39 PM
I'm just trying to get an overview of the new "DTS" of SQL Server 2005. I've tried to convert an old DTS 2000 package to SSIS Package. The package simply consist of a transformation from one file to another. The transformation has a Workflow ActiveX script task which says Main=DTSStepScriptR...more >>

Job Says Successful but Fails to Execute Package
Posted by Colette at 6/30/2005 12:08:09 PM
I have a job set up to execute a local package automatically daily at a scheduled time. After the job fires, the status indicates it ran successfully but when you verify what it was supposed to do, it shows nothing happened. The job history step details show: Executed as user: (domain)\(a...more >>

Help - importing smalldatetime values from text in ActiveX script
Posted by bill_sheets NO[at]SPAM hotmail.com at 6/30/2005 9:08:21 AM
I have an input file with date & time data in this format: yy mm dd hhmm.......... 99 12 7 1400 In an ActiveX script, I convert this to be mm/dd/yy hh:mm, and have tried using CDate() and FormatDateTime(), and when I use a MsgBox to display the value, it displays similar to '12/7/1999 2:...more >>

How function a DTS handeld in Visual Basic
Posted by MANUEL at 6/30/2005 8:04:04 AM
I want to import a text file into a table in SQL2000, this funcyion in SQL but in VB does not run and does not put any error message. Can anyone help me? Manuel...more >>

Using 'Execute SQL Task' to insert rows
Posted by Foss at 6/30/2005 7:49:17 AM
Hi there all, I'm trying to insert a number of rows into a table using the results of a sub-query to populate them. They're both on the same connection. When I parse this, it's fine. When I execute it, I get this message: "Error Source : Microsoft OLE DB Provider for SQL Server' Error D...more >>

Changing the DataSource in a loop
Posted by JvCoach23 at 6/30/2005 6:37:37 AM
I'm trying to change the datasource for a dts package inside of a loop. I've created a dyanmic proprety that is housed inside the looping steps that has the datasource = value of a global variable. In the workflow active x for the dynamic properties i add a msgbox(DTSGlobalVariables("CurrentDSN...more >>

File Unzip using DTS
Posted by mvp at 6/30/2005 6:28:04 AM
Hello, I am trying to unzip zip files using DTS... Our file were compressed by using winzip software...If i use WZUNZIP then i am able to unzip file properly.But if i use PKUNZIP my unzip file name is being truncated.. i.e if i have abcdefghijk.zip file then after unzipping it becomes abc.z...more >>



Opening DTS package from .dts file and Error - Type Mismatch
Posted by kaktusik at 6/30/2005 5:30:48 AM
Hello, I need to save DTS packages on other machine and other MS SQL server. Therefore at first I saved the DTS package like Structure Storage Files. Then I gave these files on the other machine and I wanted to open the .dts files there via the option Sql Server Enterprise Manager/Data Tr...more >>

Running Package From EM and Scheduler Problem
Posted by jasinski.janusz NO[at]SPAM gmail.com at 6/30/2005 1:31:07 AM
Hi, I created dts package that basicaly copy data from query to text file and in next step removes this data from DB. Kind of backup to file dts. To make each backup file unique I used Dynamic Property Task with sql query that returns name of file based on date. Everything runs fine from d...more >>

FileSystemObject in ActiveX Script Task
Posted by Ivan at 6/30/2005 12:55:04 AM
Hi, I would like to use the FileSystemObject in ActiveX Script Task as in Visual Basic 6. But I think that the syntax is slightly different. Can someone advise me how to do the declaration of the object and the program syntax in ActiveX Script Task? Thanks in advance. Ivan ...more >>

How to create Control Flow Item (Task) in C#
Posted by AWHK at 6/30/2005 12:00:00 AM
Hi, I`ve studied the SendMailTask that comes with VS.NET 2005 available in integration services. I have startet on my own component inheriting from SqlServer.Dts.Runtime.Task + implementing some interfaces (ie. IDTSComponentPersist) . But in the lack of information I am stuck :-( Where c...more >>

Retrieving Data from a database, filtered by a local Table
Posted by muc80339 NO[at]SPAM mnet-online.de at 6/29/2005 10:59:10 PM
Hello, i want to get data from a table, but only the data that is specified (dynamically) with a filter that is stored in a local table. SQL-Statement SELECT * FROM external_table1 INNER JOIN internal_table2 ON table1.datafield1 = table2.datafield2 How do I get this in my dts-package if i...more >>

Step-Debug DTS Package ActiveX Code
Posted by Sparky at 6/29/2005 9:29:04 PM
Can step debug be done on an ActiveX code used in a package fron Visual Studio 2003 ? What file type advised for the code ? (e.g. *.vbs or *.vb or other). I expected that I could compile and step into the code from VS 2003 environment. All it does is compile and never breaks at a breakp...more >>

Pass server name inn global variable dynamically!!!
Posted by Test Test at 6/29/2005 4:38:47 PM
Hi! I am runnig a job which executes a DTS pkg name "TMP" which is stored as dts file in the C drive of server. declare @dtsrun varchar(1000) set @dtsrun = 'dtsrun /F d:\CM_DTS\TMP.dts /N TMP /E /AServerName:8=' set @dtsrun = @dtsrun + @@servername exec master.dbo.xp_cmdshell @dtsrun ...more >>

Executing DTS packages from an ASP.NET application asynchronously
Posted by J-T at 6/29/2005 3:16:59 PM
Is there a way to execute the DTS packages from ASP.NET (preferably asynchronously) ? what kind of permission should I give the web user ? from all those packages there I want to only list some them ,how should I control this? Thanks ...more >>

Query to get distinct records
Posted by Sam at 6/29/2005 2:16:00 PM
I have 2 tables DistinctVend and NonRefvend. Both of them have the VendorID column. The DistinctVend has 25000 records The NonRefvend table has 26000 records. I want to run a query that will select only the records from NonRefVend table where the Vendorid is also in the DistinctVend tab...more >>

IBMDA400 vs IBMDARLA vs IBMDASQL (as400 dts)
Posted by AlexT at 6/29/2005 1:22:14 PM
Folks I am trying to setup an MS SQL server 2005 DTS package to import data from an As400 DB2 server. I have the choice between 3 different (managed ?) providers IBM DB2 UDB for iSeries IBMDA400 OLE DB Provider IBM DB2 UDB for iSeries IBMDARLA OLE DB Provider IBM DB2 UDB for iSeries IBMD...more >>

Cannot load MAPI Interface layer
Posted by Tien Tran at 6/29/2005 11:05:01 AM
After uninstalling SQL2005 from my server, which already has an instance of SQL2000 running sp4, I have problem with adding Send Mail Task into my package. The error is: Cannot load MAPI interface layer. Please make sure that semmap90.dll is installed. I think that dll is installed by SQL2...more >>

Error messages in SQL execution tasks
Posted by Benoit at 6/29/2005 10:17:03 AM
Hi, I'm making a datawarehouse, and I wrote DTS packages which includes several SQL execution tasks ; each of them include many SQL commands (insert, delete and update commands). There can be, let's say, between 10 and 40 SQL commands in a single task. The problem is, if one of these com...more >>

Useing a connection object in an activex control
Posted by Ben at 6/29/2005 9:19:03 AM
Hello, I have a connection object created called "connection 2" that connects with the user name and password to the proper database. I am tring to do the following: set objCnn = DTSGlobalVariables.Parent.Connections("Connection 2") Set objADORS = CreateObject("ADODB.Record...more >>

Issue when we are creating a DTS
Posted by Enric at 6/29/2005 7:35:04 AM
Dear all, We've created an specific user with Sysadmin role and after that, with that same user we build a DTS but once saved in the server, appeared as 'owner' the NT user. What's happening? Any help will be welcomed. Thanks in advance and regars,...more >>

Changing the owner of a DTS Package
Posted by BC DBA at 6/29/2005 6:41:04 AM
Hi all, Is it possible to change the owner of a DTS package? The reason I ask is that I am trying to tighten security on our SQL Servers and have a problem with DTS. Our developers have a development SQL Server (2000) that they construct their DTS packages on. They then email the DBA (m...more >>

Insert Title into text file during transformation task in DTS package
Posted by Ilin Start via SQLMonster.com at 6/29/2005 12:00:00 AM
I have DTS package, which loads data from SQL Stored Proc into text file via Transformation task. How can I insert title as a first record in the text file? Thanks, Ilin -- Message posted via http://www.sqlmonster.com...more >>

DTS Jobs across NT domains
Posted by jeff.nospam NO[at]SPAM zina.com at 6/29/2005 12:00:00 AM
I have a DTS job that is giving me fits wehn run from a scheduled job. Access denied to server. The DTS runs fine if executed directly, so I don't believe it's the connection in DTS (using SA account on both SQL Servers), the job fails on the first step which is the connection to the other serv...more >>

DTS and version control software
Posted by Richard G at 6/28/2005 11:26:55 PM
I'm considering using DTS packages for certain database tasks. I have a policy that most if not all database activity must use database code (stored procs, functions, etc). Currently, schema changes can be easily associated with code by searching Visual Source Safe files for anything that's ...more >>

Running Cursor In Execute SQL Task
Posted by Resant at 6/28/2005 9:53:04 PM
Is it possible to running cursor query in Execute SQl Task? My Cursor query is simple, just disable all constraint in all tables at a database : declare @tablename varchar(30), @str varchar(80) declare c1 cursor for select name from sysobjects where type = 'U' open c1 fetch next ...more >>

better disk config for staging & tempdb files...
Posted by Jéjé at 6/28/2005 9:41:20 PM
Hi, I want to have your feedback on how to configure my drives to insure a good performance during loading process & transformation against a staging database. Image you have 4 drives available for the staging database & tempdb database... loosing these disk is not important, so no redu...more >>

Transfer data from SQL table to Excel
Posted by Ivan at 6/28/2005 7:45:02 PM
Dear all, I am not sure if I am at the right place for my question. I have a SQL server table, I have to set the schedule (every morning at 8:00 a.m.) that the data from this table is automatically transferred to a specified Excel file. I know that there is an "Excel Connection" in DTS pac...more >>

Multiple output text files based on a query
Posted by Tim Hanson at 6/28/2005 6:07:03 PM
Hi, I am still new to DTS and can't figure out how to do this. I have a two tables, Game and Game Detail joined by Game_ID, I need to set up a DTS package where I can export to different text files the Game Detail information for each game in the Game table. Each Text file will be the Game ...more >>

How do I bring in a date which is in Integar form into a databse as a date form
Posted by Sam at 6/28/2005 4:34:04 PM
Hi I have a Platinum database which stores dates in integar form e.g the date is formatted as below: Column_name Type Length Precision ------------------------------ ------------------------------ from_date int ...more >>

Cannot execute a DTS that imports
Posted by vvenk at 6/28/2005 1:05:03 PM
Hello: I have the following table: CREATE TABLE LANGUAGE ( Language_ID_N smallint IDENTITY(1,1), Culture_Name_C varchar(20) NOT NULL, Culture_ID_C varchar(20) NULL, ISO_Language_CD_C varchar(3) NULL, Language_Country_Region_C varc...more >>

DTS/ActiveX: Transfering and manipluating table data between databases
Posted by Alex Gemmell at 6/28/2005 12:27:13 PM
Hello, I've just discovered DTS and I'm very glad I did because I need to do some serious data transformation tricks! I realise that I will need to write some ActiveX scripts to convert my data, however, I am completely new to DTS and my VBScripting skills are limited. I've used PHP for ...more >>

User that can run jobs
Posted by Evgeny Kleiman at 6/28/2005 12:11:49 PM
Hello I need to define a user of SQL Server 2000 that could run jobs. At present time I succeeded only in the case that the user has rights of system administrator (in Enterprise Manager in Logins I click right on the user and in Properties/Server Roles I check box System administrator). B...more >>

disable dts errors in VB
Posted by jack at 6/28/2005 11:03:11 AM
I'm importing a text file into SQL table using DTS. The file(s) sometimes have formatting anomalies that are benign to me but DTS sees them and throws an error - and doesn't store anything into the DB. The file is comma-delimited and there are no errors in that area. The error appears when th...more >>

Run Multiple dts packages from a job.
Posted by Sally at 6/28/2005 6:55:05 AM
I would like to create a job from enterprise manager with 3 steps, each step execute a DTS package by order. Can I do that? Any help will be appreciated....more >>

sending export file name from a c# windows app.
Posted by Banu_tr at 6/28/2005 3:56:02 AM
I have DTS packages. I run them from a C#program. DTS packages run a query and exports results as txt files. I want to send export file name dynamically from my program. Is it possible?...more >>

error/exception logging
Posted by Stephen Lonsdale at 6/28/2005 2:46:04 AM
Hi, I have a DTS package that will implemented on several network configurations and would like to use a 'path variable' to replace the string that is entered when defining the error text file. (depending on the implementation I am directed by the DBA or network admin to use specific locati...more >>

Where is the Transfer Database Task in SQL Server 2005?
Posted by Joseph Geretz at 6/28/2005 1:15:26 AM
We use the DTS Transfer Database task to blast our live database to a standby server at regular intervals. The TD task is a monolithic task which transfers a complete database. Thus, as the database changes its structure, the TD task continues to work perfectly. It simply transfers the entire ...more >>

Urgent DTS help
Posted by Yash at 6/28/2005 12:43:02 AM
Hello there, I have a statement running in DTS. SELECT COALESCE( MAX(colID ), 0 ) AS LastID FROM TableName Output of this row is stored in Global variables; on successfully completion of this step; the next step a transformation task defined as select * From TableName where colId > ...more >>

Stored Procedure from DTS
Posted by Chris Kennedy at 6/28/2005 12:00:00 AM
Can anyone tell me how, I can execute a stored procedure in a DTS and depending on the output parameter execute the rest of the stored procedure or else write to a log file? ...more >>

DTS conditionally execute steps within a package
Posted by ycmahesh NO[at]SPAM gmail.com at 6/27/2005 5:54:29 PM
I have to create a dts package which moves data for some tables from Server A to Server B and C. There is a flag in Server A in some lookup table which indicates whether Server B is available or not. Similarly there is a availability flag for Server C stored in Server A. Data should be moved fro...more >>

How to upload .DAT file
Posted by Kris at 6/27/2005 4:49:02 PM
I am having problem with .DAT file. iwant to upload it to sql server. Do i need to choose Text type ? any help.. ...more >>

SP4 for SQL 2000 and DTS
Posted by Richard Brown at 6/27/2005 3:03:02 PM
For SP3a and below, we have been installing the following files on a workstation to allow a user to run DTS packages without installing all the SQL tools: DTSRUN.exe dtsrun.rll axscphst.dll axscphst.rll custtask.dll custtask.rll dtsffile.dll dtsffile.rll dtspkg....more >>

Saving DTS Packages
Posted by et at 6/27/2005 2:27:08 PM
What is the best way to save a DTS Package. I don't seem to be able to modify any of the different types, such as if you save it as a "SQL Server", how do you modify it? Then I saved it as a SQL file, a dts file, but now how do I open it so I can modify it? I would really like to save t...more >>

Drivers for DTS to Oracle
Posted by Data Cruncher at 6/27/2005 2:26:08 PM
If I want to use DTS export table to Oracle from SQL Server, what all drivers I need. One is I believe MS ODBC Driver to connect to Oracle. Does any other Oracle client library required. ...more >>

"Attempt to insert null data" error
Posted by et at 6/27/2005 2:19:16 PM
I have a table with 2 columns that I am copying into 3, with the 3rd column being an identity column, and I have the Enable identity insert checked, with an "ignore" selected under the transformation columns. But I keep getting the error that it can't insert data because the ID field cannot b...more >>

Passing parameters from Visual BASIC to a DTS package
Posted by Tyler at 6/27/2005 2:01:02 PM
I've created DTS packages to copy tables from SQL Anywhere version 2.5 (AKA Sybase) to SQL Server 2000 & am executing them from Visual BASIC .NET. I'd like to limit the data copied by the Transform Data Task by date like this: SELECT column1, column2 FROM tablename WHERE (column2 >= inputd...more >>

SQL Agent Account
Posted by Gabe Matteson at 6/27/2005 12:11:52 PM
A problem occurred while attempting to logon as the Windows user 'SQLAgentCmdExec': The parameter is incorrect. The step failed. There are a few jobs that developers create and they run under there accounts, I do not want to give them sysadmin access, but they need permissions to CmdExec. I e...more >>

Read variable named file from an FTP folder
Posted by Blasting Cap at 6/27/2005 11:46:44 AM
I have to write a job to bring in a text file into a sql database. We have a ftp server set up and a place to read the file from. I've been looking at this site: http://www.sqldts.com/default.aspx?292 trying to get some ideas as to how to do this piece of a project. What I need to do ...more >>


DevelopmentNow Blog