DATETIME SELECT SELECT INTO DATE PAD STRING DYNAMIC SQL CURSOR MONEY FORMAT PERCENT STORED PROCEDURE SQL SERVER AGENT JOB OPTIMIZATION WHILE LOOP OVER PARTITION BY UPDATE
 
 
SITE SEARCH SQLUSA.com VIDEOS
 
 
SQL E/BOOKS   WORLD, USA & SQL NEWS   FORMAT
SCRIPTS SQL 2005 SQL 2008 ARTICLES
How to create a stored procedure for DTSRUN?

Execute the following Microsoft SQL Server T-SQL training script in SSMS Query Editor to create a sproc for DTSRUN execution :

CREATE PROC ImportFinanceData
AS
BEGIN
DECLARE @SQLCommand varchar(1000)

-- Replace it with your code
SET @SQLCommand = 'DTSRUN /S 140.242.136.106 /E /U "user" /P "password" /N
"DailyFinanceImport" '

PRINT @SQLCommand -- test & debug

EXEC master..xp_cmdshell @SQLCommand, NO_OUTPUT
END
GO

-- Execute stored procedure

EXEC ImportFinanceData
GO

Related articles:

dtexec Utility (SSIS Tool)

Running SSIS-packages in stored procedure using dtexec

How to Call SSIS Package from the Stored Procedure

 

Exam Prep 70-461
SQL 2016 DESIGN & PROGRAMMING
 
 
 
DATETIME SELECT SELECT INTO DATE PAD STRING DYNAMIC SQL CURSOR MONEY FORMAT PERCENT STORED PROCEDURE SQL SERVER AGENT JOB OPTIMIZATION WHILE LOOP OVER PARTITION BY UPDATE