有人可以提供任何关于如何在VB2012中使用存储的Sql过程的文章的链接吗? [英] Can some one provide a link to any article on how to use a stored Sql procedure in VB2012 ?

查看:40
本文介绍了有人可以提供任何关于如何在VB2012中使用存储的Sql过程的文章的链接吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试学习如何使用存储过程从Sql数据库中检索数据 


可以有人发布关于此主题的文章的链接, 提前致谢 


 

解决方案

Jim正在使用存储过程和动态过程之间没有区别。它目前一样保存,因为注入错误是固定的。


区别在于你是否有一个组织完全负责SQL数据库谁没有其他程序,而正常的程序员没有存储过程。 


其余部分与动态程序相同,因此每个样本保持不变。 


(在命令中,属性文本可以是动态过程或SP的名称,而必须设置commandtype属性)


这就是组合存储过程的全部内容用VB。


https://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlcommand.commandtype(v = vs.110).aspx


I am trying to learn how to use stored procedures to retrieve data from an Sql data base 

can some one post a link to articles on this subject,  Thanks in advance 

 

解决方案

Jim there is in use no difference between a stored procedure and a dynamic procedure. It is currently as save as, because the injection bug is fixed.

A difference is if you have an organization who is completely responsible for the SQL database who make no other programs, while normal programmers make no stored procedures. 

For the rest it is the same as with dynamic procedures and therefore every sample stays the same. 

(In command the property text can be the dynamic procedure or the name of the SP, while the commandtype property has to be set)

And that is all there is of a stored procedure in combination with VB.

https://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlcommand.commandtype(v=vs.110).aspx


这篇关于有人可以提供任何关于如何在VB2012中使用存储的Sql过程的文章的链接吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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