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 |
|
viscocesco
Starting Member
5 Posts |
Posted - 2005-05-30 : 07:05:31
|
| Hallo, I need to execute a DTS from Stored Procedure in SQL Server 2000.The DTS has only a task (ActiveX) with a message box.The code of Stored Procedure is:CREATE procedure prova_run asdeclare @hr1 int, @hr2 int, @hr3 int, @hr4 int,@oPKG int--create packageEXEC @hr1 = sp_OACreate 'DTS.Package', @oPKG OUT--Load packageEXEC @hr2 = sp_OAMethod @oPKG, 'LoadFromSQLServer("localhost", "sa", "sa", 256, , , , "DTS1")', NULL--execute packageEXEC @hr3 = sp_OAMethod @oPKG, 'exec'--cleaningEXEC @hr4 = sp_OADestroy @oPKGGOIf I run the DTS from Enterprise manager, it goes but not from Stored Procedure.There are something to set in SQL Server 2000 to run a DTS from stored procedure?Please Help me! |
|
|
nathans
Aged Yak Warrior
938 Posts |
|
|
|
|
|
|
|