Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can VBScript call SQL Server DTS Packages???

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi,

I am trying to call DTS Packages within a case statement, however i am unable to find a solution to this problem. After appended a csv file i wish to load the file into a sql server table and then run a stored procedure. Once this has been commited i wish to loop around the same piece of code and run the script again. Finally once this has completed, do the next case statement.
 
Hi,

I am more used to dealing with running DTS via batch files, but the following could be used to invoke a shell command to run the dtsrun.exe command

Dim WshShell
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.run(dtsrun.exe command line)


There are probably better ways to execute this task, as I rarely use VBScript to control processing. A better way would be appreciated.


Kevin **************************************************************
Rock is Dead (Long Live Paper and Scissors)**************************************************************
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top