Failing to get logged in sql server throught windows login

  • 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

  • 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".

  • 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!

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply