Solved

localdb windows authencation

Posted on 2013-06-10
8
373 Views
Last Modified: 2013-06-13
I have a localdb database. the windows authentication was removed now I cannot connect to the localdb. Is there a way to restore the windows authentication or add a username so I can connect to it.?
0
Comment
Question by:sevensnake77
  • 4
  • 3
8 Comments
 
LVL 32

Expert Comment

by:bhess1
ID: 39235913
What version of SQL Server?
0
 
LVL 9

Author Comment

by:sevensnake77
ID: 39236482
2012 sorry
0
 
LVL 9

Expert Comment

by:MattSQL
ID: 39236722
By windows authentication removed - do you mean that all windows accounts have been removed? (because AFAIK it's not possible to remove windows authentication entirely...)

Do you have the sa password?

If not - and you are an administrator on the server/machine try this:

http://mattsql.wordpress.com/2012/04/30/locked-out-of-sql-server/

Once you're connected to the instance with a sysadmin level account - you can add back windows accounts to your heart's content.
0
 
LVL 9

Author Comment

by:sevensnake77
ID: 39240077
Yes but this did not work. get an error. See screen shot. And i also get another error say corrupt please reinstall inwhich I did reinstall. maybe should just remove the entire sql then reinstall. or do you think a system recovery would work?
ScreenHunter-13-Jun.-12-00.40.png
0
Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

 
LVL 9

Expert Comment

by:MattSQL
ID: 39240078
I'm sorry - I can't really read that screenshot.

If you are able to reinstall SQL Server you can opt to add your current user account to the sysadmin role. (you can also create and remember the sa password)
0
 
LVL 9

Author Comment

by:sevensnake77
ID: 39241168
How can I create a password when i cannot even connect?
Sa password not remembered.  Maybe uninstall the entire ms-sql then reinstall which will take forever.?
0
 
LVL 9

Accepted Solution

by:
MattSQL earned 500 total points
ID: 39242637
Well your options are, if you are an administrator on the local machine, you could follow the steps in the link above. I'm sorry but I couldn't read the screen grab you posted earlier - so if you have issues let me know...

Another option (which I've not personally tried) is:

http://www.mssqltips.com/sqlservertip/2682/recover-access-to-a-sql-server-instance/?utm_source=dailynewsletter&utm_medium=email&utm_content=headline&utm_campaign=20130607

A probably easier but more drastic solution is to uninstall and reinstall SQL Server. You'll be prompted for an sa password during the install.
0
 
LVL 9

Author Closing Comment

by:sevensnake77
ID: 39245611
tks
0

Featured Post

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now