How to GRANT permissions to a SQL role to create and manage temp tables

后端 未结 3 492
猫巷女王i
猫巷女王i 2021-01-20 03:43

I\'d like to grant permissions to a SQL role to create a temp table #foo and grant permissions to do anything with that table (SELECT, INSERT and DELETE). How is it possible

3条回答
  •  爱一瞬间的悲伤
    2021-01-20 04:38

    Apparently, a user created with AUTHORIZATION dbo will already have a right to create and manage a temp table once he is connected to the database. It is only when this user needs to access other tables in the database, he needs explicit permissions granted to him.

提交回复
热议问题