How do you call a package from a stored procedure?

Posted on 2014-11-13
Last Modified: 2016-02-13
How do you call a package from a stored procedure?
Question by:LeVette Alexander
  • 3
  • 2

Expert Comment

ID: 40440635
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:

Open in new window

LVL 75

Accepted Solution

Aneesh Retnakaran earned 500 total points
ID: 40440650

Author Comment

by:LeVette Alexander
ID: 40440812
I'm using sql server 2008 r2.  I'm calling the package from a share and passing three variables to the package.
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Author Comment

by:LeVette Alexander
ID: 40440844
error is dtexec is not recognized as an internal or external command
LVL 75

Expert Comment

by:Aneesh Retnakaran
ID: 40440928
you need to provide the exact path. do a search on windows on the server and find the path

Author Comment

by:LeVette Alexander
ID: 40441091
Aneesh, your first solution assisted me.

Featured Post

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question