-- ============================================================================ -- Author: J. Chad Bourque -- Create date: July 18, 2006 -- Description: Execute a DTS package. -- Paramaters: @package - Name of the DTS package to execute. -- Defaults to null (nothing is run). -- ============================================================================ ALTER PROCEDURE [dbo].[dw_ExecuteDTS] ( @package varchar(50) = null ) AS begin set nocount on declare @cmd varchar(100) -- Build the command line to run. set @cmd = 'dtsrun /S (local) /N ' + @package + ' /E' -- Execute the command if it is not null. if (@cmd is not null) exec master..xp_cmdShell @cmd endYou'll have to open up the security for the user calling this, though.