文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>C#调用存储过程

C#调用存储过程

时间:2010-09-28  来源:wanqiufeng


//声明调调用一个名为bosuuid的存储过程   DbCommand dbCommand = dataBase.GetStoredProcCommand(“bosuuid”);

//将bosCode值传递给存储过程的in类型的形参bosType dataBase.AddInParameter(dbCommand, "bosType", DbType.String, bosCode);
//将44值传递给存储过程的in类型的形参bosUuid
dataBase.AddOutParameter(dbCommand, "bosUuid", DbType.String, 44);
//执行存储过程
dataBase.ExecuteScalar(dbCommand);
//获得Out类型参数bosUuid的值
result = dbCommand.Parameters["bosUuid"].Value + "";
相关阅读 更多 +
排行榜 更多 +
猫和老鼠大战手机版

猫和老鼠大战手机版

冒险解谜 下载
纸上当大侠内置菜单版

纸上当大侠内置菜单版

休闲益智 下载
这个座位有人坐吗手游

这个座位有人坐吗手游

休闲益智 下载