p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   ASP.NET 2.0 Basics (http://p2p.wrox.com/forumdisplay.php?f=136)
-   -   how to use outparams in asp.net (http://p2p.wrox.com/showthread.php?t=62742)

thillaiarasu October 9th, 2007 02:05 AM

how to use outparams in asp.net
in my project i am using stored procedure and i am passing input params,
and i want to get the out put params .if any one knows please tell me


mike_remember October 9th, 2007 03:44 AM

A simple code example is as below where first parameter is input while the second is output:

SqlParameter[] ParamArr = new SqlParameter[2];

ParamArr[0] = new SqlParameter("@FirstParam", FirstParam);

ParamArr[1] = new SqlParameter("@SecondParam", SecondParam);
ParamArr[1].Direction = ParameterDirection.Output;


All times are GMT -4. The time now is 09:02 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.