Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am trying to drop and recreate sa account to reset the password.

IF  EXISTS (SELECT * FROM sys.server_principals WHERE name = N'sa')
DROP LOGIN [sa]
GO

I am getting an error

Cannot use the special principal 'sa'.

also when I try to reset sa password in SSMS, I am getting an error Cannot alter the login 'sa' because it does not exist or you don't have permission. Error: 15151

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted
sp_password NULL,'new_password','sa'
go
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.