﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2005 / SQL Server 2005 Integration Services  / Execute SSIS package stored in Database - From Stored Procedure / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Tue, 21 May 2013 18:15:54 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Execute SSIS package stored in Database - From Stored Procedure</title><link>http://www.sqlservercentral.com/Forums/Topic725376-148-1.aspx</link><description>For a start, try using single quotes around your literals ...--edit: You may first want to create an sp to help. Something like:[code]Create procedure [dbo].[s_ExecutePackage]@FilePath   varchar(1000) ,@Filename   varchar(128)asDeclare @cmd varchar(1000)   select @cmd =  'dtexec /F "' + @FilePath + @Filename + '"'   exec master..xp_cmdshell @cmdgo[/code]This will help you execute the package from within your sp, once you have enabled use of xp_cmdshell, of course.</description><pubDate>Thu, 28 May 2009 19:50:21 GMT</pubDate><dc:creator>Phil Parkin</dc:creator></item><item><title>Execute SSIS package stored in Database - From Stored Procedure</title><link>http://www.sqlservercentral.com/Forums/Topic725376-148-1.aspx</link><description>I am trying to execute a SSIS package that is stored in a SQL Server 2005 database - want to execute from a stored procedure in same database.  What commands/operations are necessary.I tried: dtexec /SQL "\PKG_Name" /Server_Name "." /MAXCONCURRENT " -1 " /CHECKPOINTING OFF /REPORTING E /De "Password"Msg 102, Level 15, State 1, Line 1Incorrect syntax near '/'.</description><pubDate>Thu, 28 May 2009 13:14:22 GMT</pubDate><dc:creator>newbie123</dc:creator></item></channel></rss>