Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
bbxrider
Starting Member
37 Posts |
Posted - 2013-03-16 : 20:26:01
|
first choice is to invoke a DTS with parms and have it run dos shell commandwould be submitted from an IIS website .asp page and page waits for a completioncan 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 programSet objShell = CreateObject("wscript.shell")strCommand = "cmd.exe /c " & strZipExe & " -move " _ & strZipFile & " " & FileDir & "\*"Returncd = objShell.Run(strCommand, 1, True) |
|
russell
Pyro-ma-ni-yak
5072 Posts |
Posted - 2013-03-18 : 20:05:29
|
shell dtsrun.exeSee here for dstrun usage: http://msdn.microsoft.com/en-us/library/aa224467(v=sql.80).aspx |
|
|
|
|
|