Avatar of casit
casitFlag for United States of America

asked on 

SQL sa passwd help

I just got a server to migrate and I need to have the sa password.  The problem is that the current owners of the server have no clue what it is.  I do however have administrative access to the box.  Does anyone know of ways to either get the sa password, reset it, or assign permisssions to an existing user?  In the end I need a user to have sysadmin priveliges.
Microsoft SQL Server

Avatar of undefined
Last Comment
Anthony Perkins
Avatar of JMattias
JMattias
Flag of Sweden image

Hi,

If you are the local administrator I gues that you are SA by default, then you can either change the SA password or create a new user with sysadmin priveliges.

Regards
/Mattias
Avatar of rboyd56
rboyd56

As JMattias indicated, if you are a local admin and the BUILTIN\Administrators login within SQL Server still exists, you can change the password

You can use the sp_password rocedure to change the password
Avatar of casit
casit
Flag of United States of America image

ASKER

the administrator username has been disabled in sql.  Any other ideas?
Avatar of nmcdermaid
nmcdermaid

Have you tried logging into windows as domain administrator, then connecting to SQL under windows authentication yet?
Avatar of casit
casit
Flag of United States of America image

ASKER

Yes and it won't let me in.  
Avatar of rboyd56
rboyd56

If the builtin\administrator group is gone and you have not user who can log in as a sysadmin then you will have to reinstall. There is no way to change the sa password unless someone can log in as a sysadmin in SQL Server.
Avatar of casit
casit
Flag of United States of America image

ASKER

I find that a little hard to belive but fine.  Thanks for all your help.
Avatar of Anthony Perkins
>>I find that a little hard to belive but fine.<<
Think of it this way: what a great lesson to learn.

>>Thanks for all your help.<<
Please close the question.
Avatar of rattu976
rattu976

Hey dont reinstall!!!!!!!

You need to find the windows user who installed the sql server instance. Then you need to use the user's login to log into the sql server using windows authentication and then reset the sa password.

Try this.

Regards,
Rehan
Avatar of nmcdermaid
nmcdermaid

>> Yes and it won't let me in.

Can you connect as any other user? Just to verify it isn't a connection problem.  

The installing windows user is not going to let you in either if it isn't granted as a sysadm login.
ASKER CERTIFIED SOLUTION
Avatar of rboyd56
rboyd56

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
>>you will have to re-intall SQL Server and then attach your databases.<<
And then recreate all the logins.
Avatar of casit
casit
Flag of United States of America image

ASKER

Thanks for all the ideas.  I just at the moment don't have time for this.  The problem is that some of your clients use Lytec(EMR) and it changes the sa passwd.  And unfortuanelty to do anything usefull in sql you have to be in the sysadmin role group.  
>>The problem is that some of your clients use Lytec(EMR) and it changes the sa passwd.  And unfortuanelty to do anything usefull in sql you have to be in the sysadmin role group. <<
Than you have bigger problems ...
Microsoft SQL Server
Microsoft SQL Server

Microsoft SQL Server is a suite of relational database management system (RDBMS) products providing multi-user database access functionality.SQL Server is available in multiple versions, typically identified by release year, and versions are subdivided into editions to distinguish between product functionality. Component services include integration (SSIS), reporting (SSRS), analysis (SSAS), data quality, master data, T-SQL and performance tuning.

171K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo