Dates, command parameters and SQL Server
- From: "Mark" <mark@xxxxxxxxxx>
- Date: Mon, 30 May 2005 08:50:48 GMT
Hi
I am having trouble firing a stored procedure that has a date parameter
using ADO command etc. Sometimes the date may not be completed so I want to
pass null back but it won't let me. Although the column type is dateTime the
parameter is nVarchar (SP was generated by a wizard as a test), but even if
I pass a zero length string it still inserts a date.
Do I need to place an IF statement in the SP or is there something I Can
pass from the command parameter that will get recognised as null?
Thanks inn advance
Mark
.
- Follow-Ups:
- Re: Dates, command parameters and SQL Server
- From: Mark J. McGinty
- Re: Dates, command parameters and SQL Server
- Prev by Date: Re: View - Need to return NULL values
- Next by Date: Re: Dates, command parameters and SQL Server
- Previous by thread: View - Need to return NULL values
- Next by thread: Re: Dates, command parameters and SQL Server
- Index(es):
Relevant Pages
|
|