阅读背景:

如果我对某些内容有权限,我怎么能问SQL服务器? (插入,更新等)

来源:互联网 

I'm trying to write a unit test for the database layer that validates the connection string's user has update/insert/read permissions. insert/rollback would create extra gaps in the identity column or launch triggers. for read permissions selecting against the table creates load/work on the sql database and updates when the table was last searched in the statistics. How do I programmatically ask sql server the current user's permissions on an object/table/view/stored procedure/etc.I'm trying to write a unit test for the databas




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

分享到: