|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Pass DATE NULL to Stored Procedure.I have a date parameter, and i want to pass Date as NULL to the stored
procedure, I dont know how to pass null for the date field. All suggestions welcome and appreciated. -- Hemant Singh Pass DBNull.Value.
-- Show quoteMiha Markic [MVP C#] RightHand .NET consulting & development www.rthand.com Blog: http://cs.rthand.com/blogs/blog_with_righthand/ "hemant" <hem***@discussions.microsoft.com> wrote in message news:AF2F5D55-74F0-47A4-8B87-949DD358B42F@microsoft.com... >I have a date parameter, and i want to pass Date as NULL to the stored > procedure, I dont know how to pass null for the date field. > > All suggestions welcome and appreciated. > -- > Hemant Singh > > In addition to Miha's solution, you can also set the parameter's default
value to null in SP. If you don't pass the parameter value to SP, it takes null. HTH Elton Wang Show quote "hemant" wrote: > I have a date parameter, and i want to pass Date as NULL to the stored > procedure, I dont know how to pass null for the date field. > > All suggestions welcome and appreciated. > -- > Hemant Singh > > |
|||||||||||||||||||||||