yahoo invisible

Monday, October 12, 2009

Solution for sql server error in dropping database: The server principal 'DOMAIN\NAME' already exists.

If it's a SQL user, you can try:
EXEC sp_droplogin 'loginName'
or for a domain account:
EXEC sp_revokelogin 'loginName'

If they are still users on a db(s), you will have to drop the users first:
USE dbName
EXEC sp_dropuser 'username'

Naturally script out or write down all existing permissions before deleting existing users and login.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home