asp.net.ph

SqlParameter.SourceColumn Property

System.Data.SqlClient Namespace   SqlParameter Class


Sets or retrieves the name of the column used for the parameter value.

Syntax


Script SqlParameter.SourceColumn [ = strName ]

Property Value


strName The name of the source column mapped to the DataSet and used for loading or returning the Value of the SqlParameter.

The property is read/write with no default value.

Implements

IDataParameter.SourceColumn

Remarks

The link betwen the value of the SqlParameter and the DataTable may be bidirectional depending on the value of the Direction property.

Example

The following example initializes an SqlParameter and sets some of its properties.

public void CreateSqlParameter ( ) {
   SqlParameter myParam = new SqlParameter ( "@Description", SqlDbType.VarChar, 100 );
   myParam.SourceColumn = "Description";
   myParam.Direction = ParameterDirection.Output;
}
  C# VB

See Also

SqlParameter Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph