- 1. Open Regedit.
- 2. Check if [HKLM\Software\Microsoft\Microsoft SQL Server\MSSQL.1\MSSQLServer\LoginMode] is set to 1(Windows Mode) or 2(Mix Mode)
- 3. Modify the registry key to 2.
- 4. Open command prompt, change to C:\Program Files\Microsoft SQL Server\90\Tools\Binn
- 5. Execute osql -S [ServerName]\[InstanceName] -E
- 6. Under OSQL prompt, type each of the following statement and press Enter.
sp_password @old = null, @new = 'complexpwd', @loginame ='sa'
go
7. Restart SQL Service
reference:http://support.microsoft.com/kb/322336
沒有留言:
張貼留言