SQL Server 2008 can't login with newly created user

前端 未结 4 2588
别那么骄傲
别那么骄傲 2020-12-02 04:41

I\'m using using Windows Vista and I\'m having trouble logging in with a newly created user.

  1. I open SQL Server Management Studio.
  2. I create a new Logi
相关标签:
4条回答
  • 2020-12-02 05:11

    Login to Server as Admin

    Go To Security > Logins > New Login

    Step 1:

    Login Name : SomeName
    

    Step 2:

    Select  SQL Server / Windows Authentication.
    

    More Info on, what is the differences between sql server authentication and windows authentication..?

    Choose Default DB and Language of your choice

    Click OK

    Try to connect with the New User Credentials, It will prompt you to change the password. Change and login

    OR

    Try with query :

    USE [master] -- Default DB
    GO
    
    CREATE LOGIN [Username] WITH PASSWORD=N'123456', DEFAULT_DATABASE=[master], DEFAULT_LANGUAGE=[us_english], CHECK_EXPIRATION=ON, CHECK_POLICY=ON
    GO
    
    --123456 is the Password And Username is Login User 
    ALTER LOGIN [Username] enable -- Enable or to Disable User
    GO
    
    0 讨论(0)
  • 2020-12-02 05:16

    If you haven't restarted your SQL database Server after you make login changes, then make sure you do that. Start->Programs->Microsoft SQL Server -> Configuration tools -> SQL Server configuration manager -> Restart Server.

    It looks like you only added the user to the server. You need to add them to the database too. Either open the database/Security/User/Add New User or open the server/Security/Logins/Properties/User Mapping.

    0 讨论(0)
  • SQL Server was not configured to allow mixed authentication.

    Here are steps to fix:

    1. Right-click on SQL Server instance at root of Object Explorer, click on Properties
    2. Select Security from the left pane.
    3. Select the SQL Server and Windows Authentication mode radio button, and click OK.

      enter image description here

    4. Right-click on the SQL Server instance, select Restart (alternatively, open up Services and restart the SQL Server service).

    This is also incredibly helpful for IBM Connections users, my wizards were not able to connect until I fxed this setting.

    0 讨论(0)
  • 2020-12-02 05:27

    You'll likely need to check the SQL Server error logs to determine the actual state (it's not reported to the client for security reasons.) See here for details.

    0 讨论(0)
提交回复
热议问题