SqlShare.com Logo
 
Skip Navigation Links
Home
Video List
Events
Classes
About Us
Login / Register
Subscribe RSS Feed 

Takes Query Plan Analysis and Performance Monitoring to a New Level

How to Recover From Being Locked Out of a SQL Server 2005 database

In this video Brian covers how to recover from being locked out of a SQL Server 2005 instance where the administrators groups access has been removed.

Duration:
3 mins 16 secs
Skill Level:
100
Rating:
4.71 out of 5
Publish Date:
December 15, 2008
How to Recover From Being Locked Out of a SQL Server 2005 database You must be logged in to view this video.  
Bookmark and Share
 
1=Poor, 3=Good, 5=Excellent

About the Author

Image of K. Brian Kelley
Brian is a SQL Server author, columnist, and MVP focusing primarily on SQL Server security. He currently serves as database administrator / architect at AgFirst Farm Credit Bank where he can focus on his passion: SQL Server. He formerly served as a systems and security architect for AgFirst Farm Credit Bank where he worked on Active Directory, Windows security, VMware, and Citrix. In the technical...

References

There are no downloads or recommended reading links for this video

Comments
Peternt on 3/10/2009
The video is very demonstrative It needs few adjustment in the case of named instance. For example the options -s to sqlservr.exe and -S to sqlcmd. Also, instead of [BUILTIN\administrator], I used [SERVERXX\administrator] (SERVERXX is the name of my server) In short, it was very useful. Best Regards Roger

rpsheth27 on 4/4/2009
thanks a lot

Kirk M. on 6/23/2009
ive been searching the net for days on how to solve this problem!.. thanks!

lkjlk on 7/4/2009
Very Helpful,,Once asked me this question on interview.

Hansjörg on 7/10/2009
great!!

Stéphane Thinel on 9/16/2009
I never had this problem, but I'm happy to know you provided us with a solution. Thank you very much

This is certainly good news for domain admins, but perhaps bad news for managers concerned about separation of duties. Is there any way to truly restrict domain admins from accessing SQL server with sa privileges, other than removing their access to the server itself(which does not seem to be a good idea)?

mike stucchi on 9/16/2009
great, really great

Awesome!!!!

Fernando Garcia on 9/16/2009
For people from another coutry who doesn´t speak english,you have to speak more slowly,but the ideia of the video was perfect,thanks.

John R deCoville on 9/16/2009
Cool! I enjoyed this short video saving weeks of heartache, John

nilanaksha on 9/16/2009
Good one..

Garth on 9/17/2009
Clear and concise. Thanks.

Kjell on 9/17/2009
Nice, but don't speek so fast! Kjell

pete on 9/17/2009
Another excellent tutorial from Brian - Please keep them coming!!! Pete

Dugi on 9/17/2009
Yea very nice tricky solutions, thanks for sharing!

khanlala on 9/17/2009
Very Informative video

khanlala on 9/17/2009
Very Informative video

Diana Dee on 9/17/2009
Excellent! Slow enough. What about 2008 ??

4F5430C3DD on 9/17/2009
Nice and concise.

Rick Winney on 9/17/2009
Doesn't the -E of sqlcmd indicate that i am a trusted account? How can i be a trusted account and not be able to authenticate?

Ian Toland on 9/17/2009
I have had to do this before. Thanks for the demo

Matt McGhee on 9/17/2009
This actually happened to me about a month ago. Wish I had this video then. I ended up reinstalling to get around it. Thanks!

kinjalkumar on 9/17/2009
best video to learn !

Wasay on 9/17/2009
Great video, I have recently been locked out on a server for same issue but didn't bother fixing it as I know the sa password, but this correction will help me save time when I am directly on the server and not needed to type the sa password. Thanks.

F8DA83F0DD on 9/17/2009
cool.

380A492120 on 9/18/2009
Great video! Everything keyed up and ready to go. Clear explainations. Doesn't get any better than that!

sreekanth on 9/21/2009
awesome

3655881B8A on 9/22/2009
very useful

Mark Sopczak on 9/25/2009
Great

krishna on 9/29/2009
very nice...

ramesh on 10/5/2009
nice video but could contian a little more specific information.

Lars Mikkelsen on 11/16/2009
Excellent video. I've been stupid enough to have this problem a couple of times :D

Reagan on 11/19/2009
Awesome video! u saved me =D

Reagan on 11/19/2009
THANKS!

Kuben on 12/15/2009
Excellent video!! Many people for yesrs to come will use this.

Victor Maldonado on 2/26/2010
what credentials are needed for the user logging in when connecting via sqlcmd since you are connecting with a trusted connection?

dev on 2/28/2010
Gracias! No te imaginas cuanto me sirvió.

Lonely Rogue on 4/30/2010
Well, will this trick works on SQL Server 2008 also?

Paul E Richmond on 6/11/2010
Interesting technique.

Ravi Raj on 6/27/2010
good one

Ravi Raj on 6/29/2010
good one

Praneeth on 9/7/2010
great

idris chambas on 9/7/2010
Great stuff. A must-have skillset for all DBA's in their arsenal. Well done Brian.

QroburSQL on 1/24/2011
This 'trick' works on an instance of MSSQL 2008, I can confirm. Thank you Mr. Kelley, your video turned a difficult situation into an almost trivial one.

Raymond on 6/7/2011
Great Video.

JAGATH JAYAPRAKASH on 1/31/2012
good video.. informative

Jamshid Nouri on 1/31/2012
excellent demo!

Steve Culshaw on 1/31/2012
Excellent tip, you hope you never need it, but you know you will :-)

aasim abdullah on 1/31/2012
Excellent

Raghu on 1/31/2012
Excellent ....

SQL_Group on 1/31/2012
you rock buddy

Charlie Bruno on 1/31/2012
Very informative video.

Cary on 1/31/2012
Awesome thank you. May I never need this info.

026EF0D25D on 1/31/2012
I would have liked more explanation on why this works.

Michael on 1/31/2012
Perfect video

Michael on 1/31/2012
Literally, a life-saver!

Dexter Jones on 1/31/2012
How about a 2008/R2 version?

James Bishop on 1/31/2012
Nice job

Max Turavani on 1/31/2012
One of our 3rd party vendors did EXACTLY what you described. I followed your video and I am back in control. Thank you!!!

Tim on 1/31/2012
Excellent! Maybe a follow up video explaining more uses for sqlcmd?

Misael Chuc S. on 1/31/2012
Very Cool!!!!

Mohammed on 1/31/2012
Excellent.

b on 1/31/2012
This is cool!

ravi kumar on 1/31/2012
Excellent

Michael Neymit on 1/31/2012
Great lesson. Thank you!

D151BB6B9F on 1/31/2012
I really wish you would have a way to grab the commands shown on the screen. It'd save a lot of time trying to find the right commands and syntax.

Hernando Grisales on 1/31/2012
Pretty interested

Craig on 2/1/2012
Thanks Brian! Good info.

Nucu on 2/1/2012
Excelent advice

Frank on 2/2/2012
Too fast

prawin on 2/2/2012
Thanks for the Video..

manu jaidka on 2/12/2012
Very useful

Eric on 2/14/2012
Very helpful, thank you.

A4A72D151B on 2/23/2012
excellent!

ravi on 2/26/2012
good article

Ryan Ackerland on 3/6/2012
Great demo!! Got me out of a bind with a Production server that I inherited! Thanks!

No Name on 4/13/2012
Amazing job. Tks

Munna Bhai on 4/14/2012
Excellent video!!!! Can we follow the same steps for SQL 2008\R2? thanks for sharing.

olu dare on 5/10/2012
fantastic!!



Must Be Logged In
 

How Do I Become a Video Author? |  Newsletter History

Copyright © Fourdeuce, Inc., 2005-2009. All Rights Reserved | Privacy Policy | Terms & Conditions