hi ! I have installed my SQL Server with "windows client admin" and "sa" user names . after 2 month my computer name changed and i forgotten the password of "sa" . Now i see the server of SQL in login window and can select it. but i cant login by windows authentication. How i can login to SQL Server or what is the best solution? thanks. mannai
one way would be find out the account details under which the SQL Server is running, connect using that account and add userself as sysadmin account or you can change the sa password.
Welcome to the forums!. If you forget the password of "sa", and you have a windows authentication user name, then my suggestion is: 1) Change your computer name/user to the old one. 2) Using 1) connect to sql and backup of all user databases. 3) Reinstall SQL, restore, etc. 4) If before does not work, call Microsoft.
Welcome to the forums. As the servername is changed the SQL SErver service may not come online, so in this case you have to : exec master..sp_dropserver 'OldServerName' go exec master..sp_addserver 'NewServerName', local go Stop and Re-Start the MSSQL Services and you will be good to go...
thanks all it's my computer name that was changed. but my problem is i can't login with windows authentication and i don't have any SQL Server account for login too. so i can't change my server name as "Satya" says. "Luis", i can't changed my computer name to old one, because i don't have permit to it. thanks.
Like I said before, if you can't change your computer name nor ask for a new one windows account, I can't see how to fix the problem.
Ok, do you have any backups of databases that were hosted on this instance? If not just simply uninstall and reinstall a fresh server....
Dear all !Unfortunately i have reinstalled the SQl Server because of my limited time. but do the backup of database can help me to login? anyway, i have gotten some links from a friend : http://deepakrangarajan.blogspot.com/2008/01/forgot-sa-password-in-sql-server-2005.html http://www.sqlservercentral.com/Forums/Topic664614-391-2.aspx i didn't test these but seems usefulthanks. Mannai