Ok. You can't add the sa user just like that.
What you can do is change an existing 'name/Login Name' combination of a database user via the stored procedure 'sp_changedbowner'
e.g. You have a database 'Aardvark' which has two users 'dbo' and 'user'.
The owner of the database is 'sa'.
You want the owner to change to 'user'
- drop the user 'user' in the database
- run the system sproc on the Aardvark database with the following syntax: sp_changedbowner 'user',false
The owner is not 'user'.
So if you have a database where 'sa' is not the owner. Then just run the system sproc on the databsae with the syntax: sp_changedbowner 'sa',false.
See BOL for more details on the system stored procedure 'sp_changedbowner' and others...
Main Topics
Browse All Topics





by: SjoerdVerweijPosted on 2004-07-29 at 16:39:23ID: 11672552
How exactly are you trying to add the user? Why are you adding the user? sa can do everything anyway!