How to add Administrator account to SQL?

  • Hi,

    I'm trying to log into SSMS. The default is 'windows authentication' with the local administrator account showing in the username box. When I try to connect it says 'Login failed for user ''. The user is not associated with a trusted sql server connection'. Switching to mixed mode and entering the user/pass does not help.

    How do I add the server's local Administrator account to SQL so I can log in using this account?

  • you should normally connect using integrated security which does require any user account details. You should be able to connect using sa. on a workgroup you add a user to the server administrators group , this group is sysadmin by default on the sql box.

    [font="Comic Sans MS"]The GrumpyOldDBA[/font]
    www.grumpyolddba.co.uk
    http://sqlblogcasts.com/blogs/grumpyolddba/

  • They will only be sysadmin in sql if the Builtin\Administrators login is there. This usually goes against best practices having this login there though.

  • In a default installation of SQL 2000/2005 the BUILTIN\Administrators group is a member of the sysadmin server role. So unless it's been removed for security reasons, you should be able to login without any problem.

     

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

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