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.

 All Forums
 SQL Server 2000 Forums
 Import/Export (DTS) and Replication (2000)
 DTS, Stored Proc

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2004-09-10 : 08:37:02
Dave writes "Hi,

Is there any way of calling a DTS package from a stored proc, without using the xp_cmdshell e.g

CREATE PROCEDURE DI_Sync

@SyncFile varchar(255)
-- 'dtsrun /S[Server] /U[Username] /N[Package Name]'


AS

DECLARE @nResult int

EXECUTE @nResult = master..xp_cmdshell @SyncFile
GO

Regards

Dave"

nr
SQLTeam MVY

12543 Posts

Posted - 2004-09-10 : 16:03:52
see
http://www.nigelrivett.net/sp_oacreateLoadDTSpackage.html

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page
   

- Advertisement -