Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Resource Governer classification function based on which database


Resource Governer classification function based on which database

Author
Message
SQLSvrStevo
SQLSvrStevo
SSC Rookie
SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)

Group: General Forum Members
Points: 28 Visits: 205
Hi All,

I want to limit the resources available to any t-sql run against a particular database. This database is used for ad-hoc queries and resides on a production server.
The reason I wish to limit by database and not user or application is that my users may access other databases without limitation and the application in question (Management Studio) should also access other databases without limitation. The only function I can see available to the classification function is ORIGINAL_DB_NAME (). The problem with ORIGINAL_DB_NAME () is that the database can be changed for the current connection which means I may end up limiting respources on the wrong database.

Does anyone have a solution?

Thanks in advance,
Steve
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search