|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Yesterday @ 6:42 AM
Points: 2,415,
Visits: 3,379
|
|
Hi Experts, One of our production servers got crashed and recovered the server by attaching the files.Now the problem is that i want to get all the users and their respective privileages. How can i achieve that??
Thanks in Advance..
|
|
|
|
|
SSC-Dedicated
           
Group: General Forum Members
Last Login: Yesterday @ 4:11 PM
Points: 37,741,
Visits: 30,020
|
|
Do you have the master database or a backup of the master database?
Gail Shaw Microsoft Certified Master: SQL Server 2008, MVP SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
We walk in the dark places no others will enter We stand on the bridge and no one may pass
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Yesterday @ 6:42 AM
Points: 2,415,
Visits: 3,379
|
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Yesterday @ 6:42 AM
Points: 2,415,
Visits: 3,379
|
|
| The latest backup is one took last friday.
|
|
|
|
|
SSC-Dedicated
           
Group: General Forum Members
Last Login: Yesterday @ 4:11 PM
Points: 37,741,
Visits: 30,020
|
|
Have a look in books online for the procedure to restore the master database, and restore that backup of master. All of your logins and passwords are in there.
It's not the same as restoring a user database.
Gail Shaw Microsoft Certified Master: SQL Server 2008, MVP SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
We walk in the dark places no others will enter We stand on the bridge and no one may pass
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Yesterday @ 6:42 AM
Points: 2,415,
Visits: 3,379
|
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Yesterday @ 6:42 AM
Points: 2,415,
Visits: 3,379
|
|
Hi,
When i tried to start the sql server in single user mode am getting the error
C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn>sqlservr.exe -c -m AST0 26 2008-09-01 13:35:26.83 Server Error: 17058, Severity: 16, State: 1. 2008-09-01 13:35:26.83 Server initerrlog: Could not open error log file 'C: \Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG\ERRORLOG'. Operating syste m error = 32(The process cannot access the file because it is being used by anot her process.). 2008-09-01 13:35:27.15 Server Error: 17058, Severity: 16, State: 1. 2008-09-01 13:35:27.15 Server initerrlog: Could not open error log file 'C: \Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG\ERRORLOG'. Operating syste m error = 32(The process cannot access the file because it is being used by anot her process.). 2008-09-01 13:35:27.46 Server Error: 17058, Severity: 16, State: 1. 2008-09-01 13:35:27.46 Server initerrlog: Could not open error log file 'C: \Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG\ERRORLOG'. Operating syste m error = 32(The process cannot access the file because it is being used by anot her process.). 2008-09-01 13:35:27.77 Server Error: 17058, Severity: 16, State: 1. 2008-09-01 13:35:27.77 Server initerrlog: Could not open error log file 'C: \Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG\ERRORLOG'. Operating syste m error = 32(The process cannot access the file because it is being used by anot her process.). 2008-09-01 13:35:28.10 Server Error: 17058, Severity: 16, State: 1. 2008-09-01 13:35:28.10 Server initerrlog: Could not open error log file 'C: \Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG\ERRORLOG'. Operating syste m error = 32(The process cannot access the file because it is being used by anot her process.). 2008-09-01 13:35:28.41 Server Error: 17058, Severity: 16, State: 1. 2008-09-01 13:35:28.41 Server initerrlog: Could not open error log file 'C: \Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG\ERRORLOG'. Operating syste m error = 32(The process cannot access the file because it is being used by anot her process.). 2008-09-01 13:35:28.72 Server Error: 17058, Severity: 16, State: 1. 2008-09-01 13:35:28.72 Server initerrlog: Could not open error log file 'C: \Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG\ERRORLOG'. Operating syste m error = 32(The process cannot access the file because it is being used by anot her process.). 2008-09-01 13:35:29.07 Server Error: 17058, Severity: 16, State: 1. 2008-09-01 13:35:29.07 Server initerrlog: Could not open error log file 'C: \Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG\ERRORLOG'. Operating syste m error = 32(The process cannot access the file because it is being used by anot her process.). 2008-09-01 13:35:29.38 Server Error: 17058, Severity: 16, State: 1. 2008-09-01 13:35:29.38 Server initerrlog: Could not open error log file 'C: \Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG\ERRORLOG'. Operating syste m error = 32(The process cannot access the file because it is being used by anot her process.). 2008-09-01 13:35:29.69 Server Error: 17058, Severity: 16, State: 1. 2008-09-01 13:35:29.69 Server initerrlog: Could not open error log file 'C: \Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG\ERRORLOG'. Operating syste m error = 32(The process cannot access the file because it is being used by anot her process.).
|
|
|
|
|
SSC-Dedicated
           
Group: General Forum Members
Last Login: Yesterday @ 4:11 PM
Points: 37,741,
Visits: 30,020
|
|
Have you shut the service down? Also make sure that nothing's using the error log file.
Gail Shaw Microsoft Certified Master: SQL Server 2008, MVP SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
We walk in the dark places no others will enter We stand on the bridge and no one may pass
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Yesterday @ 6:42 AM
Points: 2,415,
Visits: 3,379
|
|
How long will it take to start in single user mode and how to come out of single user mode??
|
|
|
|
|
SSC-Dedicated
           
Group: General Forum Members
Last Login: Yesterday @ 4:11 PM
Points: 37,741,
Visits: 30,020
|
|
Not long, but it's not something you should be doing if users are accessing the DB.
Stop the service. Start SQL in single user mode (takes probably as long as it takes to start the service) Connect to SQL and restore the master database. Note, SQL's in single user mode. If someone else gets a connection before you, then that person is the single user. ie, make sure you do this when no one else will be trying to connect to the DB Stop SQL (Ctrl-C in the cmd window that's running sql) Restart the service.
Gail Shaw Microsoft Certified Master: SQL Server 2008, MVP SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
We walk in the dark places no others will enter We stand on the bridge and no one may pass
|
|
|
|