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

  • Home
  • SEARCH
  • 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 3630240
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T00:14:42+00:00 2026-05-19T00:14:42+00:00

I have a problem, I’m using windows 7 with MS SQL Server Management Studio

  • 0

I have a problem, I’m using windows 7 with MS SQL Server Management Studio Express 2005 although I’ve lost my administrator/ sa password. Is there a command I can use to reset the password, without the old one?

I can login using windows authenication.

many thanks,
James

  • 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-19T00:14:43+00:00Added an answer on May 19, 2026 at 12:14 am

    Login to the SQL Server computer as the Administrator of that computer. Open Query Analyzer and connect to SQL Server using Windows NT authentication. Run sp_password as shown below to reset the sa password:

    sp_password @new = 'will_never_forget_again', @loginame = 'sa'
    

    EDIT:

    This is unexpected, as you were able to get in to detach a db, so you must
    have some privileges. The message you got:
    … is a response to the sp_password command. So when you say you tried to
    reconnect with ‘sa’, can you tell us how you did that?

    Also, when using the SQLCMD tool, you have to type GO to execute a command:

    SP_PASSWORD @NEW = 'my_password', @loginame = 'sa'
    GO
    

    Then you need to exit before you try to reconnect.

    Try getting in again, and seeing who you are. So after connecting:

    C:\sqlcmd -E  -d master
    

    Please run this:

    SELECT suser_sname(), user_name()
    GO
    

    Also, run this after you obtain your user name and enter your new password per my original answer:

    ALTER LOGIN sa ENABLE
    GO
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have problem with uploading image to SQL database. i have Methods Upload in
I have problem with the way I treat the memory management in iphone..please please
I have problem with refering to special symbol in string: I have: path='C:\dir\dir1\dir2\filename.doc' and
I have problem concerning translations in qt. All translations in my porject work fine,
I have problem with a css menu. It is correct on firefox,chrome,opera,safari and ie8.
I have problem with databinding in the Win.Forms DataGridView control. Example: public class A
i have problem with showing an UIView on app delegate ... there is no
I have problem with reflection, dynamic invoking objects and reading collection values. In Referenced
i have problem with maven. When i try to compile test classes ( mvn
I have problem with synchronizing results of function I get with AJAX with that

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.