我怎样才能在asp.net(vb)中调用存储过程 [英] How can i call store procedure in asp.net(vb)

查看:80
本文介绍了我怎样才能在asp.net(vb)中调用存储过程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我已经创建了存储过程,并且想在我的应用程序中使用它.
我正在使用"Visual Studio 2005"和"sql server 2000".

Hi,
I have created stored procedure and i want to use it in my application.
I am using "visual Studio 2005" and "sql server 2000".
Can anyboby help me?

推荐答案

好吧,您的第一步是购买一些基本书籍.您可以使用ADO.NET来调用存储的proc,此站点上的大量示例,文章中以及Amazon.com上的大量书籍中都有.您应该在dll中编写适当的数据层,并尽可能集中(例如,一个连接字符串,通过一段代码读取以创建连接).

[ ^ ]是我的第一个Google匹配.我们在这里为您提供帮助,但是这里要问的最佳问题是您尝试自己做某事,编写了一些代码并且无法使其正常工作的地方.最糟糕的问题是我不知道自己在做什么,我也不会为解决这个问题而烦恼".
Well, your first step is to buy some basic books. ADO.NET is what you use to call stored procs, there are tons of examples on this very site, in the articles, and lots of books at Amazon.com. You should write a proper data layer, in a dll, and centralise as much as you can ( for example, one connection string, read by one piece of code to create a connection ).

This[^] was my first google hit. We are here to help, but the best questions to ask here are ones where you''ve tried to do SOMETHING for yourself, you''ve written some code, and you can''t make it work. The WORST questions are the ''I have no idea what I''m doing, and I can''t be bothered trying to work it out'' variety.


这篇关于我怎样才能在asp.net(vb)中调用存储过程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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