摘要: 首先建立存储过程,默认为输入参数,输出参数后面要加output/**存储过程create procedure queryStuNameById@stuId varchar(10),--输入参数@stuName varchar(10)output--输出参数asselect @stuName=stuName from stuInfo where stuId=@stuId*/Command对象上设定输出参数类型,大小后,还要指明参数为输出参数。//注意输出参数要设置大小,否则size默认为0,sqlComm.Parameters.Add("@stuName",SqlDbType 阅读全文
posted @ 2011-07-22 00:43 蚂蚁军队 阅读(1608) 评论(0) 推荐(2) 编辑