Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 7,2000
»
Administration
»
SA to be denied Access
11 posts, Page 1 of 2
1
2
»»
SA to be denied Access
Rate Topic
Display Mode
Topic Options
Author
Message
apprabhu
apprabhu
Posted Tuesday, December 18, 2001 9:59 PM
Forum Newbie
Group: General Forum Members
Last Login: Tuesday, December 18, 2001 12:00 AM
Points: 1,
Visits: 1
I want to create a database whose owner will be a login having the "Database Creators" Server Role. Take for example the database created is named "market" created by the login "amit" so invariably the dbo for "market" is "amit".
No other user is granted access to this database. The DB is created in Enterprise Manager. Now I want to restrict the sa of the SQL Server from gaining access to this DB.
Can this be done. Is it mandatory that the sa be treated as the "GOD" having access to all the databases in the SQL Server he is the administrator of.
Regards,
Amit Prabhu
Regards,
Amit Prabhu
Post #1978
Steven.
Steven.
Posted Wednesday, December 19, 2001 1:17 AM
Right there with Babe
Group: General Forum Members
Last Login: Wednesday, May 15, 2013 12:58 AM
Points: 739,
Visits: 190
Accounts with SA rights have access to the lot. I don't know of a way to restrict sa access
Steven
Post #25261
DeltaKilo
DeltaKilo
Posted Wednesday, December 19, 2001 2:57 AM
SSC Journeyman
Group: General Forum Members
Last Login: Wednesday, November 29, 2006 7:59 AM
Points: 75,
Visits: 1
Hi Amit,
sa is a member of the SYSADMIN role and this can't be changed. Can you clarify a bit more what you're trying to do. You see, the "owner" will always be a login that is a member of "dbo" database role while the "database creator" is a separate issue. What is the need to restrict the sa from the database
Regards,
DeltaKilo
Post #25262
Steve Jones - SSC Editor
Steve Jones - SSC Editor
Posted Wednesday, December 19, 2001 9:55 AM
SSC-Dedicated
Group: Administrators
Last Login: Today @ 2:56 PM
Points: 31,525,
Visits: 13,862
Can't restrict sa, similar to the inability of restricting the domain admin. what is missing, however, is the auditing ability (or the take ownership tracking) in SQL. I've seen this quite a bit and I hope it gets corrected, in disallowing sysadmins to "read" all data by default.
Steve Jones
steve@dkranch.net
Follow me on Twitter:
@way0utwest
Forum Etiquette: How to post data/code on a forum to get the best help
Post #25263
Steven.
Steven.
Posted Thursday, December 20, 2001 1:35 AM
Right there with Babe
Group: General Forum Members
Last Login: Wednesday, May 15, 2013 12:58 AM
Points: 739,
Visits: 190
You can sort of restrict 'domain admins' by removing the builtin/admin for the admin group (not exactly advisable) as this can cause problems with full text indexing etc.
Steven
Post #25264
Steve Jones - SSC Editor
Steve Jones - SSC Editor
Posted Thursday, December 20, 2001 12:32 PM
SSC-Dedicated
Group: Administrators
Last Login: Today @ 2:56 PM
Points: 31,525,
Visits: 13,862
There are a few articles on removing admins from SQL. Not too bad in SS2K.
I was more referring to restricting admins on the network,not SQL.
Steve Jones
steve@dkranch.net
Follow me on Twitter:
@way0utwest
Forum Etiquette: How to post data/code on a forum to get the best help
Post #25265
Mkumari
Mkumari
Posted Thursday, January 03, 2002 1:36 PM
Mr or Mrs. 500
Group: General Forum Members
Last Login: Yesterday @ 8:45 AM
Points: 534,
Visits: 139
sa is the owner of all the objects.But when the user say amit, if he creates the tables you can see him under the owner column in the EM.So, instead of dbo you can see him as the owner of those tables,but you cannot restrict the sa from accessing those objects.
As others have mentioned you can simply restrict buitin\admins accounts from accessing the objects by removing them.
Post #25266
cabby2583
cabby2583
Posted Wednesday, January 09, 2002 1:27 AM
Grasshopper
Group: General Forum Members
Last Login: Monday, February 11, 2002 12:00 AM
Points: 24,
Visits: 1
My understanding of the SA user account is that it should be used sparingly. As in, give it a complex password, lock it up in a safe and use it only in emergencies. If no one knows the password, the account theoretically can't be used to access the server/s.
If you can do the above and make all of your Administrators members of the "sysadmin" fixed server role, will this accomplish what's being discussed? If you need to restrict all Administrators from this specific database, don't assign anyone to the "sysadmin" role. However, this will probably complicate your life as you try to administer your system/s.
Any thoughts on the SA account use, and how much it should be used, or is commonly used?
cabby2583
caballero@mediaone.net
Always Learn!
Post #25267
DeltaKilo
DeltaKilo
Posted Wednesday, January 09, 2002 2:17 AM
SSC Journeyman
Group: General Forum Members
Last Login: Wednesday, November 29, 2006 7:59 AM
Points: 75,
Visits: 1
Hi Cabby,
you can't restrict access to an sa user or a member of the Sysadmin role. I see where you're coming from but if you remove people from the sysadmin role that removes "God" access on all databases .... so yep, a complication indeed :)
Post #25268
ckempste
ckempste
Posted Wednesday, January 09, 2002 8:29 AM
SSC Eights!
Group: General Forum Members
Last Login: Tuesday, July 31, 2007 8:20 AM
Points: 885,
Visits: 1
Hi
Its not a problem really, the DBA is the DBA and should be GOD when its comes the DB management and administration. To achieve this, only the DBA uses and knows the SA account (in dev/test/prod) and reworks the BUILTIN\Administrators login account to remove sysadmin access or possibly delete it all together and create a new custom version associated with better defined domain and local groups. In the case where mixed mode is used, the same ideas apply.
Dont be bullied into giving away the SA account, it should remain flexible enough to alter its password at any time (ie, dont go embedding it into dts jobs etc), look at it as your super account for emergancies and "dba" fixes only.
Like in oracle with the sys account, its not going away, so they create a "system" account with slightly different privs etc (but still basically king). So manage the DB and the SA account as such.
My big gripe is auditing in SQL-Server, its basically totally crap and needs a lot more time spent on it, including additional triggers for "on login", etc etc for custom jobs.
Cheers
Chris
Chris Kempster
www.chriskempster.com
Author of "SQL Server Backup, Recovery & Troubleshooting"
Author of "SQL Server 2k for the Oracle DBA"
Post #25269
« Prev Topic
|
Next Topic »
11 posts, Page 1 of 2
1
2
»»
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.