Jul 31, 2002 #1 Guest_imported New member Joined Jan 1, 1970 Messages 0 How could I pass parameters to dtsrun utility to execute a package in the command line? I am in a hurry to get through this. Thanks. David
How could I pass parameters to dtsrun utility to execute a package in the command line? I am in a hurry to get through this. Thanks. David
Oct 6, 2005 #2 zatch MIS Joined Oct 11, 2001 Messages 75 Location US It's a little late, I suppose. But, in case anyone else is trying to make this happen, here's what I do. It could be shortened. Zatch http://www.mjlake.com CREATE PROCEDURE spExecDtsSpecific_Load ( @LOAD_NO int ) AS DECLARE @cmd sysname, @var sysname SET @var = @LOAD_NO SET @cmd = 'DTSRUN /S "(local)" /NSPECIFIC_LOAD_ASP /Uusername /Ppassword /A "LOAD_NO":"3"=' + @var + ' /E ' Exec master..xp_cmdshell @cmd GO Upvote 0 Downvote
It's a little late, I suppose. But, in case anyone else is trying to make this happen, here's what I do. It could be shortened. Zatch http://www.mjlake.com CREATE PROCEDURE spExecDtsSpecific_Load ( @LOAD_NO int ) AS DECLARE @cmd sysname, @var sysname SET @var = @LOAD_NO SET @cmd = 'DTSRUN /S "(local)" /NSPECIFIC_LOAD_ASP /Uusername /Ppassword /A "LOAD_NO":"3"=' + @var + ' /E ' Exec master..xp_cmdshell @cmd GO