SQL Script fails with error: The login already has an account under a different user name
Posted
by Rock Hymas
on Server Fault
See other posts from Server Fault
or by Rock Hymas
Published on 2010-05-04T16:03:32Z
Indexed on
2010/05/04
16:08 UTC
Read the original article
Hit count: 242
sql-server-2005
|sql-server
I have a script that creates a user associated with a login for SQL Server 2005. It does this immediately after creating the database and the login. One user of the script reported the following error:
The login already has an account under a different user name
Any idea how this might happen, and how I could modify the script to handle it?
© Server Fault or respective owner