SolvedPrivate

How do you call a package from a stored procedure?

Posted on 2014-11-13
6
39 Views
Last Modified: 2016-02-13
How do you call a package from a stored procedure?
0
Comment
Question by:LeVette Alexander
  • 3
  • 2
6 Comments
 
LVL 5

Expert Comment

by:scgstuff
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:
EXEC MSDB.DBO.SP_START_JOB N'SQLJobName' 

Open in new window

0
 
LVL 75

Accepted Solution

by:
Aneesh Retnakaran earned 500 total points
ID: 40440650
0
 

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.
0
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 

Author Comment

by:LeVette Alexander
ID: 40440844
error is dtexec is not recognized as an internal or external command
0
 
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
0
 

Author Comment

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

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

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 …
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
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…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

770 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