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
Can the Top position of an object be moved into a position where a ToolStrip was that got set invisible?
windows cannot access the specified drive, path, or file. You may not have the appropriate permissions to access the item
Batch file to copy and verify
Delete user profiles based on the age of the ntuser.dat file.
IIS 7 - redirect HTTP to HTTPS
asp.net I am trying to read and convert the @@IDENTITY value - it works in one of my Procs. - but not in another
ASP.NET Compilation Error
Windows Mobile OWA Secure setup?
Java multi thread singleton
Splitting Comma Separated Values inline