SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 Import/Export (DTS) and Replication (2000)
 dts question
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

bbxrider
Starting Member

USA
36 Posts

Posted - 03/16/2013 :  20:26:01  Show Profile  Reply with Quote
first choice is to invoke a DTS with parms and have it run dos shell command

would be submitted from an IIS website .asp page and page waits for a completion

can the DTS be invoked directly or does it need to invoked from a SQL job?

of course if submitted from a SQL job the parms submitted to the job would need to be passed through to the DTS

below is typical vb code to submit a shell command, need to be able to do this either directly in DTS or perhaps have DTS run a program or VBS that actually submits the shell command and as before then the DTS would need to pass parms passed to it, pass them to the VBS or vb program

Set objShell = CreateObject("wscript.shell")
strCommand = "cmd.exe /c " & strZipExe & " -move " _
& strZipFile & " " & FileDir & "\*"
Returncd = objShell.Run(strCommand, 1, True)

russell
Pyro-ma-ni-yak

USA
5072 Posts

Posted - 03/18/2013 :  20:05:29  Show Profile  Visit russell's Homepage  Reply with Quote
shell dtsrun.exe

See here for dstrun usage: http://msdn.microsoft.com/en-us/library/aa224467(v=sql.80).aspx
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000