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 / June 2006

Tip: Looking for answers? Try searching our database.

service broker permission

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
news.microsoft.com - 27 Jun 2006 16:02 GMT
Hi

I have a queue execute on dbo and calling a stored procedure to process some
data.  the stored procedure calls a view that references a table on another
database on the same server.  I am getting a denied error when the procedure
select from the view?  if I login as sa and select from the view on
management studio, its ok?   is there a premission setting that I have to
set?

thanks

Pauli
Remus Rusanu [MSFT] - 27 Jun 2006 16:17 GMT
Mark the database trustworthy, you are under an EXECUTE AS context:
http://msdn2.microsoft.com/en-us/library/ms188304.aspx
The issue is described in BOL here:
http://msdn2.microsoft.com/en-us/library/ms166102.aspx
For a solution that does not require turnin on the trustworthy bit, see this
blog article:
http://blogs.msdn.com/remusrusanu/archive/2006/03/07/545508.aspx

Signature

This posting is provided "AS IS" with no warranties, and confers no rights.

HTH,
~ Remus Rusanu

SQL Service Broker
http://msdn2.microsoft.com/en-us/library/ms166043(en-US,SQL.90).aspx

> Hi
>
[quoted text clipped - 8 lines]
>
> Pauli
 
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.