社区
.NET技术其他语言
帖子详情
如何创建一个OleDbCommand Class使用的StoredProcedure?
carlton
2002-11-05 06:56:41
VS.Net中是否有这样的工具?
Acess能办到吗?
谢谢!
...全文
37
1
打赏
收藏
如何创建一个OleDbCommand Class使用的StoredProcedure?
VS.Net中是否有这样的工具? Acess能办到吗? 谢谢!
复制链接
扫一扫
分享
转发到动态
举报
AI
作业
写回复
配置赞助广告
用AI写文章
1 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
TheAres
2002-11-10
打赏
举报
回复
OleDbConnection cn = new OleDbConnection(strConn);
cn.Open();
OleDbCommand cmd = cn.CreateCommand();
cmd.CommandText = "GetCustomer";
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.Add("@CustomerID", OleDbType.WChar, 5);
cmd.Parameters[0].Value = "ALFKI";
OleDbDataReader rdr = cmd.ExecuteReader();
if (rdr.Read())
Console.WriteLine(rdr["CompanyName"]);
else
Console.WriteLine("No customer found");
rdr.Close();
cn.Close();
使用
ADO.NET 和 C# .NET 调用带参数的存储过程
以下是一个
使用
SQL Server的示例,展示如何调用一个名为`Test
Procedure
`的存储过程: ```csharp using System; using System.Data.SqlClient; public
class
Program { public static void Main() { using ...
C#连接数据库示例
下面是一个具体的代码示例,演示如何
使用
C#更新数据库中的数据。 ```csharp using System; using System.Data.
OleDb
; public
class
ConnDb { private
OleDb
Connection conn = null; public ConnDb() { if ...
因存储过程参数类型不匹配而造成
OleDb
Command
的不可用(一) (转)
因存储过程参数类型不匹配而造成
OleDb
Command
的不可用(一) (转)[@more@] 因存储过程参数类型不匹配而造成
Oledb
Command
的不可用XML:namespace prefix = o ns = "urn:...
因存储过程参数类型不匹配而造成
OleDb
Command
的不可用
<!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--><script type="text/javascript"
因存储过程参数类型不匹配而造成
OleDb
Command
的不可用(二) (转)
因存储过程参数类型不匹配而造成
OleDb
Command
的不可用(二) (转)[@more@](续 .NET/develop/read_article.ASP?id=18426">因存储过程参数类型不匹配而造成
Oledb
Co...
.NET技术其他语言
1,979
社区成员
12,448
社区内容
发帖
与我相关
我的任务
.NET技术其他语言
.NET技术 其他语言讨论
复制链接
扫一扫
分享
社区描述
.NET技术 其他语言讨论
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章