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
how i export from asp pasge inter phon numbers to excell
Syntax for Passing parameters from .net form to use for ORDER BY values
select vs print
Automatically add subject title
package equivalent in sql file
changing password in Outlook Webaccess
Router on a stick issue
Excel INDIRECT question
Javascript error in Chrome when setting innerHTML or innerText
Internet Explorer 7 not opening