Passing Null value to SQL
From: amber (amber_at_discussions.microsoft.com)
Date: 10/21/04
- Next message: Tom Shelton: "Re: Bye Bye Microsoft Passport!"
- Previous message: asj: "And the Liberty Alliance Wins! (Re: Bye Bye Microsoft Passport!)"
- Next in thread: Jon Skeet [C# MVP]: "Re: Passing Null value to SQL"
- Reply: Jon Skeet [C# MVP]: "Re: Passing Null value to SQL"
- Reply: Sriram Krishnan: "Re: Passing Null value to SQL"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 21 Oct 2004 09:53:04 -0700
Hello,
I'm not sure if this question should go in the SQL forum or this one...
I'm using VB.NET and SQL Server.
I'm using stored procedures to update and create new records in my database.
On the form I'm working on, I have 2 date fields.
I want the user to have the option of leaving these blank.
I do not want default values.
I'm getting error messages not matter what I try.
What syntax can I use to get VB to pass this null value instead of a date,
into SQL??
Thanks!
amber
- Next message: Tom Shelton: "Re: Bye Bye Microsoft Passport!"
- Previous message: asj: "And the Liberty Alliance Wins! (Re: Bye Bye Microsoft Passport!)"
- Next in thread: Jon Skeet [C# MVP]: "Re: Passing Null value to SQL"
- Reply: Jon Skeet [C# MVP]: "Re: Passing Null value to SQL"
- Reply: Sriram Krishnan: "Re: Passing Null value to SQL"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|