日期:2014-05-18 浏览次数:20876 次
/*只有传出的参数*/
declare @t int
set @t=0
execute sp_executesql 
          N'select @count=count(1) from pubs.dbo.employee',
          N'@count int output',
          @t output
------解决方案--------------------
看看这个
http://www.cnblogs.com/edobnet/archive/2005/04/24/144509.html