<p>I forgot my password for Sql Server 2005. Windows Authentication is not enabled so I cannot login. How can I remove the current instance and create a new db instance? Or is there a better solution exists?</p>

[{'answer_id': 18780, 'author': 'Stu', 'author_id': 414, 'author_profile': 'https://Stackoverflow.com/users/414', 'pm_score': 0, 'selected': False, 'text': '<p>Have you tried connecting when logged on as domain/server-local Administrator?</p>\n'}, {'answer_id': 18796, 'author': 'Russ Cam', 'author_id': 1831, 'author_profile': 'https://Stackoverflow.com/users/1831', 'pm_score': 3, 'selected': True, 'text': '<p>Assuming you are a member of the Windows Admininstrator group, you can put the server in Single User mode, you could try this -</p>\n\n<p><a href="http://blogs.msdn.com/raulga/archive/2007/07/12/disaster-recovery-what-to-do-when-the-sa-account-password-is-lost-in-sql-server-2005.aspx" rel="nofollow noreferrer">http://blogs.msdn.com/raulga/archive/2007/07/12/disaster-recovery-what-to-do-when-the-sa-account-password-is-lost-in-sql-server-2005.aspx</a></p>\n'}, {'answer_id': 18879, 'author': 'Chris Tybur', 'author_id': 741, 'author_profile': 'https://Stackoverflow.com/users/741', 'pm_score': 2, 'selected': False, 'text': "<p>My read of the question was that the server is set up to use SQL authentication only, and perhaps you don't know the sa password or any other SQL login credentials? If so, you might be able to change the authentication mode. For SQL Server 2005 default instances, it's stored in the registry at:</p>\n\n<p>HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Microsoft SQL Server\\MSSQL.1\\MSSQLServer</p>\n\n<p>in a DWORD called LoginMode. A value of 2 indicates Mixed Mode (both Windows and SQL authentication are supported); I think 0 is Windows only and 1 is SQL only. You can try changing it to 2, restart the MSSQL service, then try to get into the SQL management studio after logging into the machine as an administrator.</p>\n\n<p>If that fails, you can create another instance by re-running the setup program.</p>\n"}]
['https://Stackoverflow.com/questions/18772', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/31505/']