CharlesChen's Technical Space

简单实用是我一直在软件开发追求的目标(I Focus on. Net technology, to make the greatest efforts to enjoy the best of life.)
Not the best, only better
  博客园  :: 首页  :: 联系 :: 订阅 订阅  :: 管理

2012年4月16日

摘要: 在项目中写了一个存储过程: CreatePROCEDURE [dbo].[****]@ParkingAddress nvarchar(50) ASBEGINinsert into table(ParkingAddress)values(@ParkingAddress)ENDif(@@rowcount>0)return 1elsereturn 0 在程序中我需要调用这个存储过程并且得到它的返回值。因此需要获取该存储过程的返回值。在程序中我通过SqlCommand中的ExecuteNonQuery方法调用成功后,一时不知道怎么得到它的返回值。(没有用output输出参数),故查了些资料得到了 阅读全文

posted @ 2012-04-16 17:25 Charles Chen 阅读(7109) 评论(0) 推荐(0) 编辑