Assign a login to a user created without login (SQL Server)

后端 未结 6 2015
逝去的感伤
逝去的感伤 2021-01-31 07:52

I have got a user in my database that hasn\'t got an associated login. It seems to have been created without login.

Whenever I attempt to connect to the database with t

6条回答
  •  再見小時候
    2021-01-31 08:11

    Create a login for the user

    Drop and re-create the user, WITH the login you created.

    There are other topics discussing how to replicate the permissions of your user. I recommend that you take the opportunity to define those permissions in a Role and call sp_addrolemember to add the user to the Role.

提交回复
热议问题