Link to home
Start Free TrialLog in
Avatar of LeVette Alexander
LeVette Alexander

asked on

How do you call a package from a stored procedure?

How do you call a package from a stored procedure?
Avatar of scgstuff
scgstuff
Flag of United States of America image

I call from ASP.NET code behind, but you should be able to do the same using this format....

Create a SQL Server Agent Job

Create procedure to execute:
EXEC MSDB.DBO.SP_START_JOB N'SQLJobName' 

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Aneesh
Aneesh
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of LeVette Alexander
LeVette Alexander

ASKER

I'm using sql server 2008 r2.  I'm calling the package from a share and passing three variables to the package.
error is dtexec is not recognized as an internal or external command
you need to provide the exact path. do a search on windows on the server and find the path
Aneesh, your first solution assisted me.