取存储过程output的取
来源:互联网 发布:淘宝沙发推荐 编辑:程序博客网 时间:2024/05/16 06:45
@RetValue int out
as
select @RetValue=xxxx from .......
cs代码:
SqlCommand com = new SqlCommand("存储过程名",con对象);//建立SQL命令
com.CommandType = CommandType.StoredProcedure;//指定使用SQL存储过程
com.Parameters.Add("@RetValue", SqlDbType.Int).Direction = ParameterDirection.Output;//得到存储过程返回值
int rv = Convert.ToInt32(com.Parameters["@RetValue"].Value);//定义值接收
as
select @RetValue=xxxx from .......
cs代码:
SqlCommand com = new SqlCommand("存储过程名",con对象);//建立SQL命令
com.CommandType = CommandType.StoredProcedure;//指定使用SQL存储过程
com.Parameters.Add("@RetValue", SqlDbType.Int).Direction = ParameterDirection.Output;//得到存储过程返回值
int rv = Convert.ToInt32(com.Parameters["@RetValue"].Value);//定义值接收
0 0
- 取存储过程output的取
- ASP为什么取不到存储过程OUTPUT类型参数的值
- 取存储过程的信息
- 取 存储过程 参数
- 取汉字拼音首字母的存储过程
- 取汉字拼音首字母的存储过程
- 取汉字拼音首字母的存储过程
- 取汉字拼音首字母的存储过程
- 取汉字拼音首字母的存储过程
- 取汉字拼音首字母的存储过程
- 取汉字拼音首字母的存储过程
- 取汉字拼音首字母的存储过程
- 取存储过程的参数列表
- 一个分页取数据的存储过程
- ASP.net:调用存储过程 -- 代码取不到输出(Output)参数值 - 因ExecuteReader不当使用
- 取存储过程返回值
- 取存储过程结果集
- 取汉字首字母存储过程
- python2.7 编解码问题
- 服务器上进行drop_caches 留出内存使用
- 处女篇:ObjectDataSource+CodeSmith实现基础增删改查功能
- GridView双击某行弹出一新窗口
- WebConfig常用配置文件说明
- 取存储过程output的取
- GridView全选
- 集成通用Mapper,单表操作从此轻松
- GridView批量删除页面最后N条数据时自动翻到上一页问题
- Cookie问题(烦了三天)
- asp.net 2.0 简单实现url重写
- 应用Url重写时CSS引用问题
- asp.net 2.0中设定默认焦点按钮
- 文件夹复制操作(非递归循环遍历文件夹)