Quantcast
Channel: Thoughts, codes, occasional rants, many others. » SQL Server
Viewing all articles
Browse latest Browse all 11

Executing SSIS Packages from SQL without SSIS

$
0
0

I wanted to automate collecting logs from some production servers that I manage and the best way to get remote data is using SSIS. However, we typically do not install SQL Server Integration Services (SSIS) on our boxes – and I do not have access to any server that has this feature installed (its a new job, things are going to change!). So package store is not there, nor can you schedule the SSIS Package easily. DTEXEC came to rescue:

You can simply execute package via the SQL Server agent job by doing the following. Please note that you will have to have xp_cmdshell enabled if you want to use T-SQL.

 
EXEC xp_cmdshell 'dtexec /f "C:\SSISProjects\DBA\DBA\Test.dtsx"'

Viewing all articles
Browse latest Browse all 11

Trending Articles