There is no native T-SQL command to execute a package, You coudl probably
write one through the CLR integration.
I don't think executing packages from T-SQL is the best idea. It is more
common to call them via secheduled jobs. You can aways start a job from
T-SQL. This of course depends on yoru requirements.
--
Darren Green
http://www.sqldts.com http://www.sqlis.com [quoted text, click to view] "Ravi Persaud" <rkcsp@yahoo.com> wrote in message
news:7CAEB910-1BB6-4BFD-8ED8-6D5539739BDF@microsoft.com...
>I re-created my DTS package in SQL Server 2005. I now execute the package
> using: [ Exec Master..xp_cmdshell 'DTExec /f C:\Data\packagename.dtsx' ]
>
> It is working fine however, is there another way of executing this package
> in SQL Server 2005 without having to go to xp_cmdshell and run DTExec?
>
> Okay, so the [ packagename.dtsx ] is external but let's say it was
> internal.
> Is there a way to execute a package in one step instead of 2 as above?