SQLServerCentral.com / SQL Server 2008 / Security (SS2K8) / Accidentally deleted all existing privilges for a domain account - Help / Latest PostsInstantForum.NET v2.9.0SQLServerCentral.comhttp://www.sqlservercentral.com/Forums/notifications@sqlservercentral.comTue, 03 Mar 2015 13:43:32 GMT20RE: Accidentally deleted all existing privilges for a domain account - Helphttp://www.sqlservercentral.com/Forums/Topic1514078-1526-1.aspxThe master will have your login premissions, but if you want to get back your DB premissions you will need to have the user databases. Now maybe you have orphaned users in your user DBs, so I would restore master first and then use sp_change_users_login sproc to see if you can take care of the orphaned users. If not, then you will need to restore at least the Primary FG on each user database. [url]http://technet.microsoft.com/en-us/library/ms177425.aspx[/url]Thu, 14 Nov 2013 08:39:46 GMTKeith TateRE: Accidentally deleted all existing privilges for a domain account - Helphttp://www.sqlservercentral.com/Forums/Topic1514078-1526-1.aspxYes, I do have a test server and I can restore the master there. but Do i have to restore all the user DBs as well :-o ? that is like 1.5 TB worth 156 databases.Wed, 13 Nov 2013 15:55:54 GMTMinnesota - Viking RE: Accidentally deleted all existing privilges for a domain account - Helphttp://www.sqlservercentral.com/Forums/Topic1514078-1526-1.aspxSo basically you will need the Master database to get the permissions for your logins and the user database(s) for the permissions for the users that are associated with those server logins.Do you have a test server where you can restore the master and all user databases to?Wed, 13 Nov 2013 15:51:15 GMTKeith TateAccidentally deleted all existing privilges for a domain account - Helphttp://www.sqlservercentral.com/Forums/Topic1514078-1526-1.aspxI was using a tool to copy permissions from old account to new accounts and I dont know what in the seven hills the tool did but today morning I realized that both my source and destination logins have no permissions in them except public on server. So if I go back one day in time the logins had access to certain databases. I don't know to which. How do I recover the privillges for certain logins (known) on certain databases (unknown). I thought [i]sp_helplogins[/i] will save me but unfortuantely it runs a cursor in the background that spans across all DBs and checks for [b]current [/b] permissions. I have A backup of Master DB from Yesterday. Will this help ? In other words I need the output of sp_helplogins .. but from yesterday. And sp_helplogin is deriving everything from master DB it is gng DB by DB to look for [b]current [/b]logins. Please suggest.Wed, 13 Nov 2013 15:19:42 GMTMinnesota - Viking