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

Random Solutions  
 
programming4us programming4us