Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

If I login to a particular instance of SQL Server 2008 using a Windows domain user who is in the sysadmin role and I create a brand new database via SQL Management Studio, a user in the newly create database is automatically mapped explicitly for my local MACHINE\Administrator account.

This doesn't happen on any other SQL instance I have running, or for any other user on the problematic instance. I'm thinking there must be a setting somewhere (at the server level or the user level), but I can't seem to find info anywhere in Microsoft's documentation or on the Google.

share|improve this question

1 Answer 1

up vote 4 down vote accepted

This is because there is a user created in the model database with that right. The SQL Server uses the model database to create other databases, so anything done within the model database will be created in the new database. This includes the tempdb database which is recreated every time the instance is started.

share|improve this answer
    
Thanks, @mrdenny! I don't why I couldn't find mention of this anywhere. –  Rob Sobers Sep 15 '10 at 12:17

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.