vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi, I copied the DATA directory from a backup ghost image to a new SQL 6.5 installation and, after fixing a problem with the directory structure (which caused the databases to be marked as "suspect") I was able to work with it in a normal way. Opening the company database works without problems. The DATA directory seems to be correctly copied. The only problem is that I'm unable to see the scheduled tasks. I'm a using predefined database user (not sa). My questions are: 1. Is it normal not to see the scheduled tasks when logged as another user than the sa or the owner of the tasks ? If it isn't, then something went wrong copying the DATA directory (even if SQL didn't mark them as suspect). Any advise or comment about this would be really welcome. 2. If it's normal not to see the scheduled tasks, Is there any way to recover the lost sa password ? The docs containing the password were lost around 4 years ago. Any help would be really welcome, |
| |||
| [posted and mailed, please reply in news] Mist in the night (mistinthenight@hotmail.com) writes: > 1. Is it normal not to see the scheduled tasks when logged as > another user than the sa or the owner of the tasks ? If it isn't, then > something went wrong copying the DATA directory (even if SQL didn't mark > them as suspect). Any advise or comment about this would be really > welcome. I did a test, and indeed as a plain user I was not able to see the scheduled task as sa. > 2. If it's normal not to see the scheduled tasks, Is there any way > to recover the lost sa password ? The docs containing the password were > lost around 4 years ago. I assume that the server is not configured for Windows Authentication? But as long as you have Windows admin privilege on the box, this can be arranged. Go the registry, and find HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer\ MSSQLServer\Parameters. Change LoginMode from 0 to 1. Restart SQL Server. Now you can connect with Windows Authentication. If you are logged on to Windows with admin privs, you will be connected as sa. Once there, you can change the sa password to whatever you like. -- Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se Books Online for SQL Server SP3 at http://www.microsoft.com/sql/techinf...2000/books.asp |
| |||
| Erland, Thank you for your clear and precise help. I had the domain admin password and it worked at the first try. If only I had asked before, it could have saved me two really stressful days I owe you a beer, - Juan Erland Sommarskog wrote: > I assume that the server is not configured for Windows Authentication? > But as long as you have Windows admin privilege on the box, this can be > arranged. Go the registry, and find > HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer\ MSSQLServer\Parameters. > Change LoginMode from 0 to 1. Restart SQL Server. > > Now you can connect with Windows Authentication. If you are logged on to > Windows with admin privs, you will be connected as sa. Once there, you > can change the sa password to whatever you like. |
| |||
| Mist in the night (mistinthenight@hotmail.com) writes: > Thank you for your clear and precise help. I had the domain admin password > and it worked at the first try. Glad to hear that it worked out! -- Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se Books Online for SQL Server SP3 at http://www.microsoft.com/sql/techinf...2000/books.asp |
| |||
| Erland Sommarskog wrote: > I assume that the server is not configured for Windows Authentication? > But as long as you have Windows admin privilege on the box, this can be > arranged. Go the registry, and find > HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer\ MSSQLServer\Parameters. > Change LoginMode from 0 to 1. Restart SQL Server. I have been trying to recover a lost sa password as well. The SQL Server is not configured for windows authentication. When I looked in the registry for the key referenced above, it was not there. The server (very old) is running NT4 Service Pack 6. I also searched the registry for local users that registered the sql server in enterprise manager. I found logins and passwords in the registry but none of them happened to be the sa password. |
| |||
| SvenOlsen (cfo@ait.com) writes: > HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer\ MSSQLServer\Parameters. >> Change LoginMode from 0 to 1. Restart SQL Server. > > I have been trying to recover a lost sa password as well. The SQL Server > is not configured for windows authentication. When I looked in the > registry for the key referenced above, it was not there. Is the entire Parameters key missing, or is just the LoginMode missing? In either case, why not just try adding the value and see if it helps? Of course, an entire key tree is missing this can indicate that the installation is broken in several ways. -- Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se Books Online for SQL Server SP3 at http://www.microsoft.com/sql/techinf...2000/books.asp |
| |||
| The Parameters key is present, however the LoginMode is missing. I tried adding LoginMode as a string with a value of 1, rebooted the server and I could not successfully register the sql server in enterprise manager using a trusted connection. I also tried adding LoginMode as a DWORD but I did not have any success with that either. |
| |||
| SvenOlsen (cfo@ait.com) writes: > The Parameters key is present, however the LoginMode is missing. I tried > adding LoginMode as a string with a value of 1, rebooted the server and I > could not successfully register the sql server in enterprise manager using > a trusted connection. I also tried adding LoginMode as a DWORD but I did > not have any success with that either. You did restart the server? Does "isql -E" work? If not, what is the error message? I believe the value is a DWORD, but I will have to double-check when I come home. -- Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se Books Online for SQL Server SP3 at http://www.microsoft.com/sql/techinf...2000/books.asp |