0

I am using SQL server 2008 r2. When I was installing, I had chosen the mixed mode of SQL authentication.

I have given sa as user name and given some password then I forgot the password.

I don't know how to change the user password or delete that and create new user log-in?

Pondlife
  • 15,992
  • 6
  • 37
  • 51
user1863261
  • 107
  • 1
  • 13

2 Answers2

1

Try:

exec sp_password null, '<new password>', 'sa'

Run this as a sysadmin user, substituting with whatever new password you want.

muhmud
  • 4,474
  • 2
  • 15
  • 22
0

If you can log into your system as a sysadmin then run the following.

ALTER LOGIN sa WITH PASSWORD = 'xx'

If you can't log in as the sysadmin but can at least log into the server as an administrator let me know and I'll send you a link on how to fix your problem.

Kenneth Fisher
  • 3,692
  • 19
  • 21
  • I found the link anyway. Go to SQLSkills here: http://www.sqlskills.com/insidercontent/insidernewsletters.asp. You may have to sign up as a "SQL Skills Insider" to get there, I'm not sure. Either way if you look at the October 29th, 2012 edition it has a video on connecting to your instance sysadmin. – Kenneth Fisher Feb 15 '13 at 16:22