Re: User Mapping question
- From: "Dan Guzman" <guzmanda@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 24 Oct 2006 18:41:30 -0500
So apparently SSMS attempts to create the specified user in the specified databases -- when I wanted a mapping.
The mapping for the 'dbo' user is determined by database ownership. You can specify the database owner with:
USE MyDatabase
EXEC sp_changedbowner 'SomeLogin'
--
Hope this helps.
Dan Guzman
SQL Server MVP
"John A Grandy" <johnagrandy-at-yahoo-dot-com> wrote in message news:uzDZZ259GHA.1220@xxxxxxxxxxxxxxxxxxxxxxx
SS05/SSMS
I select Login Properties for a domain account and select User Mapping.
I'd like to map this login to the dbo user on a couple of dbs. However, if I check the "Map" checkbox and enter "dbo" for the User column and then click "OK" I receive the error :
"Create failed for User 'dbo' (Microsoft.SqlServer.Smo)
Additional information:
An exception occurred while executing a Transact-SQL statement or batch.
(Microsoft.SqlServer.ConnectionInfo)
User, group, or role 'dbo' already exists in the current database. (Microsoft SQL Server, Error: 15023)
So apparently SSMS attempts to create the specified user in the specified databases -- when I wanted a mapping.
.
- References:
- User Mapping question
- From: John A Grandy
- User Mapping question
- Prev by Date: User Mapping question
- Next by Date: Re: Disable database diagram creation
- Previous by thread: User Mapping question
- Next by thread: Permission for a role...
- Index(es):
Relevant Pages
|
|