SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Failing to get logged in sql server throught windows login


Failing to get logged in sql server throught windows login

Author
Message
anoop.mig29
anoop.mig29
Old Hand
Old Hand (377 reputation)Old Hand (377 reputation)Old Hand (377 reputation)Old Hand (377 reputation)Old Hand (377 reputation)Old Hand (377 reputation)Old Hand (377 reputation)Old Hand (377 reputation)

Group: General Forum Members
Points: 377 Visits: 155
Hi friends

At one of our client side we are not abled to get logged in sql server through windows login and we donot have sa pwd or any other sql logins.Any idea now how to proceed.

Thanks and regards
Anoop Pandey
tripleAxe
tripleAxe
SSCrazy
SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)

Group: General Forum Members
Points: 2090 Visits: 13545
If BUILTIN\Administrators has been left enabled you could try getting your account added to the server Administrator group temporarily to allow you to log in to SQL Server and then grant your windows account permissions.

If BUILTIN\Administrators has not been left in place then to recover the sa password you will still need to be added to the Administrator group on the server but you are going to need to stop SQL and start it in single-user mode e.g. net start mssqlserver /m this will then give members of the Administrator group access to SQL Server. You can then grant access and/or change the sa password.

There are a couple of articles on the web that go into more detail if you search for "recovering the sa password".
Lowell
Lowell
SSC Guru
SSC Guru (71K reputation)SSC Guru (71K reputation)SSC Guru (71K reputation)SSC Guru (71K reputation)SSC Guru (71K reputation)SSC Guru (71K reputation)SSC Guru (71K reputation)SSC Guru (71K reputation)

Group: General Forum Members
Points: 71738 Visits: 40939
anoop.mig29 (12/11/2013)
Hi friends

At one of our client side we are not abled to get logged in sql server through windows login and we donot have sa pwd or any other sql logins.Any idea now how to proceed.

Thanks and regards
Anoop Pandey


this script from microsoft has worked flawlessly for me twice now; it's a cmd/bat file which prompts you for the servername,a dn adds the current windows suer as an admin tot eh instance you identified.

http://archive.msdn.microsoft.com/Project/Download/FileDownload.aspx?ProjectName=addselftosqlsysadmin&DownloadId=9198

Lowell
--help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search