Monday, June 8, 2015

sqlParameter in C#!

SqlParameter sqlParameter = new SqlParameter();
sqlParameter.SqlDbType = SqlDbType.Structured;
sqlParameter.Value = myDataTable;
sqlParameter.ParameterName = "Whatever";
sqlParameter.Direction = ParameterDirection.Input;
sqlParameter.IsNullable = false;

No comments:

Post a Comment