December 18, 2007 at 5:21 pm
Hi folks - I have a lot of database experience but am new to SQL Server. I need to drop a user login from our database, since that person has left our company. I noticed that the user account in question owns several scheduled jobs and DTS packages. I can, of course, change the owner of those things, but how do I find out whether the user owns some other things which might break the system if I drop the user? Thanks in advance for any advice.
December 20, 2007 at 3:15 pm
You may try the following script:
SELECT su.uid, su.name, so.name FROM sysusers su, sysobjects so WHERE su.uid = so.uid AND su.uid <> 1 AND su.name = 'userName'
December 28, 2007 at 3:11 pm
Additionally I would recommend disabling the user for a period of time, say a month, before deleting. Giving you time to object change ownership to the proper account.
In a pinch you would be have the option of re-enabling the user for that mission critical report or what-have-you.
Best of Luck.
"Key"
MCITP: DBA, MCSE, MCTS: SQL 2005, OCP
December 28, 2007 at 4:12 pm
Damon is spot on... don't drop the user immediately... just disable it.
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply