SolvedPrivate

How do you call a package from a stored procedure?

Posted on 2014-11-13
6
38 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

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…
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

930 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now