Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 Restricting user's processor/resources usage?

Author  Topic 

rav3n0u5
Yak Posting Veteran

88 Posts

Posted - 2006-03-14 : 21:06:53
I have a rogue on staff who likes to hammer our SQL server whenever he feels like it. Unfortunately, this kind of hurts operations. I can't restrict him using security methods, because, well, he is my boss...

Can anyone point me in the direction of something that might be able to limit the resources he can use so he doesn't bring the server to a crawl?

I know that there is the query cost mechanism, but to my knowledge (which isn't much), it is not user-specific. Can it be?

Any help is much appreciated.

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2006-03-15 : 13:55:58
If you can't restrict his security, then there's nothing you can do to restrict the amount of resources he consumes on the database server.

Tara Kizer
aka tduggan
Go to Top of Page

rav3n0u5
Yak Posting Veteran

88 Posts

Posted - 2006-03-15 : 14:08:53
Hmm...

Revising my previous statement... I can't reasonably restrict the tables and views so that he couldn't use them to query against. But if they happened to return less information for him, or gave up processing sooner, he wouldn't be able to argue.

Does that make it any more feasible?
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2006-03-15 : 14:13:19
I don't understand what you mean. Does he have sysadmin or db_owner?

Tara Kizer
aka tduggan
Go to Top of Page

rav3n0u5
Yak Posting Veteran

88 Posts

Posted - 2006-03-15 : 14:25:42
He doesn't have to be, so let's say no.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2006-03-15 : 14:28:25
Then restrict his access via views. That way you'll be able to restrict the data. So let's say you have Table1 and you only want him to see maybe 1000 rows. Your view would be this:

CREATE VIEW SomeViewName
AS

SELECT TOP 1000 Column1, Column2, Column3
FROM Table1
GO

No matter what he does he'll be limited to 1000 rows. You could also use a WHERE clause to restrict data.

So you'd only need to provide the permissions on the views and nothing else.

Tara Kizer
aka tduggan
Go to Top of Page

rav3n0u5
Yak Posting Veteran

88 Posts

Posted - 2006-03-15 : 14:31:54
Can you restrict certain views to certain times?

So, if I wanted a table/view available only between the hours of 2:00 PM and 8:00 PM?
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2006-03-15 : 14:34:37
You'd have to create a job to grant and revoke the access.

Tara Kizer
aka tduggan
Go to Top of Page

rav3n0u5
Yak Posting Veteran

88 Posts

Posted - 2006-03-15 : 14:39:31
Hmm... I think I like that last idea. Thank you for all your help (again, and again, and again...)!

Go to Top of Page

Michael Valentine Jones
Yak DBA Kernel (pronounced Colonel)

7020 Posts

Posted - 2006-03-15 : 16:25:01
Perhaps you could develop a "play" area for him. For example, load another database on another server with just the data he is interested in and let him access that. Or install a developer edition of SQL Server on his PC, and put it there.

You could explain that you set it up just to benefit him, so that those annoying production processes don't slow his important work down.





CODO ERGO SUM
Go to Top of Page
   

- Advertisement -