如何锁定存储过程和SQL Server中的表 [英] how to lock stored procedure, and table in sql server

查看:180
本文介绍了如何锁定存储过程和SQL Server中的表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个数据库,我不想让任何人访问过程表,我们可以通过Web配置文件进行访问



在此先感谢

i have a data base in which i would like to nobody access procedure table and we can access by the web config file



thank in advance

推荐答案

1.创建具有对特定SQL ID的访问权限的存储过程.
2.在Web配置文件中共享该凭据
3.应用程序使用访问权限ID读取并执行.
1. Create stored procedure with access rights to a particular SQL ID.
2. Share that credentials in web config file
3. Application reads and executes with the access rights ID.


看看这一点.

http://msdn.microsoft.com/en-us/library/ff648664.aspx [ ^ ]

问候,
爱德华
Take a look at this.

http://msdn.microsoft.com/en-us/library/ff648664.aspx[^]

Regards,
Eduard


这篇关于如何锁定存储过程和SQL Server中的表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆