Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3952990
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T01:55:15+00:00 2026-05-20T01:55:15+00:00

This is rather embarrassing, but I accidentally deleted my Windows account from the list

  • 0

This is rather embarrassing, but I accidentally deleted my Windows account from the list of SQL Server 2008 users and I cannot for the life of me figure out how to re-add myself now that I don’t have login privileges.

The server is running on my machine and the only other Windows users with access are IUSR, NETWORK SERVICE and SYSTEM. Is there anything I can do short of re-installing?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T01:55:15+00:00Added an answer on May 20, 2026 at 1:55 am

    I also recently deleted my windows account from my local development 2008 server. I was able to use SQL server’s Single User Mode to recreate my login and add it to the sysadmin role. It took just a few minutes, and I didn’t have to admit my terrible error to anyone.

    From MSDN:

    Starting SQL Server in single-user mode enables any member of the
    computer’s local Administrators group to connect to the instance of SQL
    Server as a member of the sysadmin fixed server role.

    Here’s how I reinstated myself:

    1. Exit out of SSMS
    2. Stop any SQL related services. I had to stop Reporting Services. Other SQL services such as SQL Agent will also use up your one, valuable connection.
    3. Stop the SQL service
    4. Start the SQL service with the extra parameter -m. This will put the SQL into Single User Mode. This means that SQL will only accept one connection.
    5. Use sqlcmd to connect to your server with the -E trusted connection option. SQL will accept you into the sysadmin role if you’re a local administrator.
    6. In the interactive session, create your login and add to the sysadmins role.

      USE master
      GO
      CREATE LOGIN [domain\username] FROM WINDOWS WITH DEFAULT_DATABASE=[Master]
      GO
      EXEC sp_addsrvrolemember @loginame=N'domain\username', @rolename=N'sysadmin'
      GO
      
    7. Stop the SQL service, remove the -m parameter and restart the service. You should now be able to go back into SSMS and continue using the server normally.

    If you get the message:

    Login failed for user ‘domain\username’. Reason: Server is in single user
    mode. Only one administrator can connect at this time.

    Then there is something using your single connection. You’ll need to find that service or connection and stop it before you can log in. Check SQL Agent, SQL Reporting Services, SQL Analysis Services etc.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this rather simple SQL query, but it takes almost a minute to
I know this is rather laughable, but I can't seem to get simple C++
This may be rather noobish but I'm gonna ask anyhow. I have a class
Know this might be rather basic, but I been trying to figure out how
I realize this is a rather odd request, but I was wondering if anyone
I imagine this has a rather simple answer <% for user in @users %>
Using this rather neat approach I can disable weekends and holidays from the datepicker.
This code outputs the $captured array, but $captured[1] contains bar/this rather than my expected
Please forgive this rather basic question, but I'm very new to Java and still
I've used this in other languages, but lua seems to be lacking this rather

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.