![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello there I need to build scipt that runs DTS Package on sql server Is there a way to do this? |
#3
| |||
| |||
|
|
You can use xp_cmdshell to call DTSRUN, or you can use the OLE procedures, e.g. Data Transformation Services (DTS) (http://www.databasejournal.com/featu...le.php/1459181) Or SQL Agent, create a job and schedule, manually start in Enterprise Manager, or use sp_start_job. -- Darren Green http://www.sqldts.com http://www.sqlis.com "Roy Goldhammer" <roy (AT) hotmail (DOT) com> wrote in message news:OujWm4WdFHA.1384 (AT) TK2MSFTNGP09 (DOT) phx.gbl... Hello there I need to build scipt that runs DTS Package on sql server Is there a way to do this? |
#4
| |||
| |||
|
#5
| |||
| |||
|
#6
| |||
| |||
|
|
Why not invoke the DTS Package from your client code? In principle it's possible to use COM+ to execute COM objects on a remote machine (the client in this case) but to do that via xp_cmdshell seems pointless. If you don't want to run a process on the server then what's the point of using a proc? Alternatively, maybe you can share the location where the Excel files are located so that the package can create them there even when it runs on the server. -- David Portas SQL Server MVP -- |
![]() |
| Thread Tools | |
| Display Modes | |
| |