Home > Microsoft > Reset SA password from Command Promt with OSQL

Reset SA password from Command Promt with OSQL

June 17, 2012

If SQL server is installed without an instance:
Start command promt as administrator and type the following:
osql -E
If SQL server is installed with an instance (IE. SQLExpress):
Start command promt as administrator and type the following:
osql -S (local)\SQLExpress -E
Then the following command:
sp_password NULL,’nytt passord’,’SA’
GO

%d bloggers like this: