Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
All-Star
31269 Points
3445 Posts
May 18, 2011 08:00 AM|LINK
Hi Haansi,
Haansi It is when I need to catch 2 output parameters should I do like:
It won't execute your procedure when you call these lines.
db.GetParameterValue(dbCommand, "@LeaveID");
db.GetParameterValue(dbCommand, "@UserId");
Actually, it is called when you call db.ExecuteNonQuery(dbCommand); After this, all the output parameters are retrieved from the your procedure. You can see the steps from this link. http://msdn.microsoft.com/en-us/library/system.data.common.dbcommand.aspx
Best regards,
Jonathan
Jonathan She...
All-Star
31269 Points
3445 Posts
Re: DAAB how to get multiple output parameters ?
May 18, 2011 08:00 AM|LINK
Hi Haansi,
It won't execute your procedure when you call these lines.
Actually, it is called when you call db.ExecuteNonQuery(dbCommand); After this, all the output parameters are retrieved from the your procedure. You can see the steps from this link. http://msdn.microsoft.com/en-us/library/system.data.common.dbcommand.aspx
Best regards,
Jonathan
If you have any feedback about my replies, please contact msdnmg@microsoft.com.
Microsoft One Code Framework