Microsoft
Software
Hardware
Network
Question : Change the login name of a user in a SQL Server 2005 database
I have one database says DB1 under SQL Server 2005
User USER1 has created tables in that database
His login (SQL login, not Windows) is, says LOGIN1
Now I want to change his login to another existing, says LOGIN2
I planned to try this
use DB1
exec sp_dropuser 'USER1'
exec sp_adduser 'LOGIN2','USER1','hisrole'
But when I execute the drop, SQL says it can't drop the schema USER1 (because tables exists there)
How can I then just "update" the login from LOGIN1 to LOGIN2 ?
Answer : Change the login name of a user in a SQL Server 2005 database
Sounds like you should instead be using a queue (and perhaps also a semaphore)
http://www.exampledepot.co
m/egs/java
.lang/Work
Queue.html
http://java.sun.com/develo
per/techni
calArticle
s/J2SE/
con
currency/
Random Solutions
XP corrupt file system
In MSAccess 2003, what is faster and/or more efficient -- macros or vbcode?
oracle pl/sql
ssh shell not working on solaris 10
Need SQL Translation - Access SQL to SQL 2008 Express
Need to Defrag Information store (Exchange 2003)
called function not executing - why?
Connecting to a Window Server 4.0 domain with a Windows 7 workstation
wxqwa.sys file found in system32/drivers...is this malware?
Pattern for java app