复合陈述 [英] Compound Statements
问题描述
你好,
如何阻止/阻止SQL服务器运行复合SQL
语句。我不希望服务器批量运行多个
update / delete / insert / select语句。有没有选择?
/ Kaf
www .afiouni.com
Hello,
How can I stop/prevent SQL server from running compound SQL
statements. I do not want the server to run multiple
update/delete/insert/select statements as a batch. Is there an option?
/Kaf
www.afiouni.com
推荐答案
Khaled Afiouni(po**@afiouni.com)写道:
Khaled Afiouni (po**@afiouni.com) writes:
如何阻止/阻止SQL Server运行复合SQL
语句。我不希望服务器批量运行多个
update / delete / insert / select语句。有没有选择?
How can I stop/prevent SQL server from running compound SQL
statements. I do not want the server to run multiple
update/delete/insert/select statements as a batch. Is there an option?
不,没有这样的选择。
请解释一下你的真正问题是什么,以及也许我们可以找到一个
的建议。你现在要求的东西真的没有意义吗?
-
Erland Sommarskog,SQL Server MVP, es **** @ sommarskog.se
SQL Server SP3联机丛书
http://www.microsoft.com/sql/techinf...2000/books。 asp
限制用户可以执行的操作的通常机制是只允许通过参数化存储过程访问它们。那不符合你的要求吗?
-
David Portas
SQL Server MVP
-
The usual mechanism to restrict what operations users can perform is to give
them access only through parameterized stored procedures. Does that not meet
your requirements?
--
David Portas
SQL Server MVP
--
Erland Sommarskog< es **** @ sommarskog.se>在消息新闻中写道:< Xn ********************** @ 127.0.0.1> ...
Erland Sommarskog <es****@sommarskog.se> wrote in message news:<Xn**********************@127.0.0.1>...
Khaled Afiouni( po**@afiouni.com)写道:
Khaled Afiouni (po**@afiouni.com) writes:
如何阻止/阻止SQL服务器运行复合SQL语句。我不希望服务器批量运行多个
update / delete / insert / select语句。有没有选择?
How can I stop/prevent SQL server from running compound SQL
statements. I do not want the server to run multiple
update/delete/insert/select statements as a batch. Is there an option?
不,没有这样的选择。
请解释你的真正问题是什么,也许我们可以找到一个
建议。您现在要求的内容真的没有意义吗?
No, there is no such option.
Please explain what your real problem is, and maybe we can find a
suggestion. What you are asking for right now does not really make sense?
感谢您的回复。请允许我简化它。
实际上我正在检查SQL注入的最终解决方案
问题。因此,除了过滤,检查和验证
输入之外,我还想停止运行复合语句和
,只允许执行第一个SQL语句。 br />
有什么建议吗?
/ Kaf
www.afiouni.com
这篇关于复合陈述的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!