与存放程序有关的问题 [英] problem related to store procedure

查看:69
本文介绍了与存放程序有关的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

即时通讯使用storedprocedure和即时通讯使用Visual Studio2010.当我尝试添加参数时,它们告诉我添加(system.data.sqlclient.sqlparameters).但是我无法将其添加为名称空间...我可以在存储过程中传递参数吗?...帮助我..

预先thanx....!!!

i m using storedprocedure and i m using visual studio 2010.when i try to add parameters then they tell me to add(system.data.sqlclient.sqlparameters).but i can''t add this as namespace...so how can i pass parameteres in storedprocedure....help me..

thanx in advance....!!!

推荐答案

尝试通过添加system.Data和System.Data.SqlClient命名空间来实现.
try by adding system.Data and System.Data.SqlClient namespaces.


在解决方案资源管理器中,右键单击项目节点,然后单击添加引用".

在添加引用"对话框中,选择指示您要引用的组件类型的选项卡.

在这种情况下,它将是System.Data.dll

选择要引用的组件,然后单击确定".
然后输入SqlParameter类型,然后按Ctrl +点组合在一起,将有一个选项可以解析该类型的名称空间.
In Solution Explorer, right-click the project node and click Add Reference.

In the Add Reference dialog box, select the tab indicating the type of component you want to reference.

Which in this instance will be System.Data.dll

Select the components you want to reference, and then click OK.
Then type out the type which is SqlParameter and press Ctrl + dot combined and there will be an option to resolve that types namespace.


这篇关于与存放程序有关的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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