guest2013-1
guest
- Joined
- Aug 22, 2003
- Messages
- 19,800
- Reaction score
- 13
I have a stored proc on one database that needs to inner join it's one table to another database on the same machine's table.
I'm getting a security context error warning me that the user I'm using to fire this stored procedure doesn't have permission to access the other database (using DBNAME.dbo.TABLE to link to the other database)
Now obviously I can just give that user permissions for that database, but I'm not convinced it's the right way to approach this issue.
Are there any solutions you guys can think of (other than replicating the table) that I could try? It's only the SP I need to have access to the other database/table.
I'm getting a security context error warning me that the user I'm using to fire this stored procedure doesn't have permission to access the other database (using DBNAME.dbo.TABLE to link to the other database)
Now obviously I can just give that user permissions for that database, but I'm not convinced it's the right way to approach this issue.
Are there any solutions you guys can think of (other than replicating the table) that I could try? It's only the SP I need to have access to the other database/table.