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
Cannot Access Application Data
How to implement getenumerator() method in a genrics class
Exchange 2003 Account Outlook Mailbox Security
sort field based on color
echo image?
delay notifications from AOL and GT.RR.COM, exchange 2003
Out of grace periods on Novell
How do I get inherited properties from a derived interface using Reflection ?
Microsoft Hyper-V Server 2008 R2 - Is there a benefit to a small organisation?
Public IP