I am trying to drop a login and then reinstate it, as a script but i keep getting this error:
Could not drop login as the user is currently logged in.
my scripts is:
EXEC sp_droplogin 'CTS'
EXEC sp_addlogin 'CTS', 'password'
exec sp_addrolemember 'db_owner', 'CTS'
Any ideas??
Thanks,
Rob
---------------------------------------
Could not drop login as the user is currently logged in.
my scripts is:
EXEC sp_droplogin 'CTS'
EXEC sp_addlogin 'CTS', 'password'
exec sp_addrolemember 'db_owner', 'CTS'
Any ideas??
Thanks,
Rob
---------------------------------------