SQL Server Enable User

The problem

You have a SQL Login created for your account usr_test
Everything appears fine, but you cannot connect.
When you look in the users section of your database, the user appears with a disabled icon? (little red down arrow)
usr_test_disabled

The issue

Your user does not have “CONNECT” permission and therefore shows as disabled.

The solution

In SQL management studio, do the following;

  1. Connect to your SQL Server
  2. Switch to the database having the issues
    [sql]Use MyDatabase
    GO
    [/sql]
  3. Execute the following statement
    [sql]
    Grant Connect to usr_test
    [/sql]
  4. Refresh the list of users and now the user looks normal and you can connect to the database

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.