if your command returns a datareader, you need to close it first, show your sp and code, or seeUsing Stored Procedures with a Command
http://msdn.microsoft.com/library/en-us/cpguide/html/cpconusingstoredprocedureswithcommand.asp?frame=true
http://msdn.microsoft.com/library/en-us/cpguide/html/cpconusingstoredprocedureswithcommand.asp?frame=true
楼主的意思是要 ref 参数的效果吧,在存储过程中没用过,不知道有没有