Wednesday, March 28, 2012

Query

Hi,

objSqlCmd.Parameters.Add("@.Cnt", SqlDbType.Int).Direction = ParameterDirection.Output

What is the meaning of .(dot) direction. and ParameterDirection.Output

Thanking you

Abdul

SqlParameter.Direction property: Gets or sets a value that indicates whether the parameter is input-only, output-only, bidirectional, or a stored procedure return value parameter (from MSDN).

ParameterDirection: To set the value of Direction property.

Heres more on it:http://msdn2.microsoft.com/en-us/library/system.data.sqlclient.sqlparameter.direction.aspx

No comments:

Post a Comment