P
Peter Kirk
Hi
should I be able to set the value for a parameter to a stored procedure to
null? For example:
IDataParameter param = command.CreateParameter();
param.ParameterName = "@id";
param.Value = null;
param.Direction = ParameterDirection.Input;
param.DbType = DbType.Int32;
command.Parameters.Add(param);
I keep getting an sql-exception stating that the parameter @id was expected.
Thanks
Peter
should I be able to set the value for a parameter to a stored procedure to
null? For example:
IDataParameter param = command.CreateParameter();
param.ParameterName = "@id";
param.Value = null;
param.Direction = ParameterDirection.Input;
param.DbType = DbType.Int32;
command.Parameters.Add(param);
I keep getting an sql-exception stating that the parameter @id was expected.
Thanks
Peter