阅读背景:

存储过程在不同的模式中调用数据

来源:互联网 

SQL Server 2008 R2: normally, we create our table, and stored procedure, and grant a user execute rights to the stored procedure. We never have to grant specific rights to the tables or views because if they user can execute the stored procedure SQL Server infers that the stored procedure should be allowed to perform the select/insert/update statements. Works well because we're only dealing with one schema, but now we've got a scenario where the tables are in one schema, but a stored procedure is in another. When the user executes the stored procedure, they get an error:SQL Server 2008 R2: normally, we create our tab




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: