Solved

localdb windows authencation

Posted on 2013-06-10
8
375 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
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

864 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

22 Experts available now in Live!

Get 1:1 Help Now