Stored procedure parameter
- From: "Peter Kirk" <pk@xxxxxxxxxxxxxxxxxx>
- Date: Thu, 24 Nov 2005 16:53:04 +0100
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
.
- Follow-Ups:
- Re: Stored procedure parameter
- From: Larry Lard
- Re: Stored procedure parameter
- Prev by Date: Re: Datagrid to excel
- Next by Date: Re: Stored procedure parameter
- Previous by thread: DropDownList
- Next by thread: Re: Stored procedure parameter
- Index(es):
Relevant Pages
|