July 30, 2010     |
Network Toaster
SQL Security Forums
Note: SQLSecurity.com does not allow nor require registration due to privacy concerns for users. SQLSecurity.com is open and anonymous for all. Please report any abuse or profanity.
Subject: Locked out of SQL 2005
Prev Next

Author Messages
Pete (guest)

06/18/2008 7:53 AM Quote Reply Alert 
Hands up who been really stupid.... okay it's me.

I've managed to lock myself out of my dev db (SQL 2005 Developer Edition). I somehow dropped my login (trusted AD) while scripting a DB and can't remember the sa password I set (should have used blank ;-().

Is there any way of getting back in without resorting to a full re-install?

TIA

Pete
Chip Andrews
Posts:113

06/22/2008 12:16 PM Quote Reply Alert 
Pete,

There is a great article on this issue here:
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

The jist is that you need to start SQL Server in maintenance mode and add the privs back so you can log in as an admin.

Chip


Forums > Discussions > SQL Server Security > Locked out of SQL 2005

Quick Reply
Username:  
Subject:  
Body:
 



ActiveForums 3.6
Copyright 1999 by Chip Andrews   |  Privacy Statement  |  Terms Of Use