Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / Other Technologies / Service Broker / November 2006

Tip: Looking for answers? Try searching our database.

Activation Stored Proc Problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Marc - 13 Nov 2006 05:58 GMT
Hi,

My broker service is configured to use a particular stored proc as the
Activation procedure.  It basically inserts some data into a table, then
runs sp_start_job to fire off a sql job (this all takes place on a single
SQL Server).  When the queue receives its message, the procedure runs great.
However the sp_start_job is not running the job, yet there is no indication
of any error.  The job simply doesn't run..  If I manually run the code in
the proc, the job fires off, so I'm fairly certain the code is syntactically
correct.  Would there be any security concerns that I should obvserve when
having the activation stored proc run something like sp_start_job?  anything
else that would prevent the job from starting up?

thanks.
Roger Wolter[MSFT] - 13 Nov 2006 06:19 GMT
Check the SQL Server error.log file for errors.  Chances are the user that
the activated sp is running under does have permissions to start a job.
Remus has quite a bit of information on running tasks from an activated
procedure and the security implications involved in his blog:
http://blogs.msdn.com/remusrusanu/

Signature

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

> Hi,
>
[quoted text clipped - 10 lines]
>
> thanks.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.