Hi Everyone,I have problem in accessing a table in tempdb and would appreciate if someone assist me on that.Our database is on SQL SERVER 2014. We have a table(table1) that has been created by user1 and with the schema of user1. So the full name of table is tempdb.user1.table1. Now I want to access to this table by User2. I have created a role(role1) in tempdb & model databases and give select permission to User1 schema. If I connect to SSMS by using User2 , I am able to select from tempdb.user1.table1. But if I try to call a sp in other database in which it has reference to tempdb.user1.table1, I face with below error message.The SELECT permission was denied on the object 'table1', database 'tempdb', schema 'user1'.
↧