Restrict SQL Server Login access to only one database

前端 未结 4 2118
北恋
北恋 2020-12-02 06:21

I have a SQL Server server which has around 50 databases on it.

I wish to create a new Login for a client who wishes to have access to the

4条回答
  •  醉梦人生
    2020-12-02 07:04

    1. Connect to your SQL server instance using management studio
    2. Goto Security -> Logins -> (RIGHT CLICK) New Login
    3. fill in user details
    4. Under User Mapping, select the databases you want the user to be able to access and configure

    UPDATE:

    You'll also want to goto Security -> Server Roles, and for public check the permissions for TSQL Default TCP/TSQL Default VIA/TSQL Local Machine/TSQL Named Pipesand remove the connect permission

提交回复
热议问题