Re: Passing Null value to SQL

From: Sriram Krishnan (ksriram_at_NOSPAMgmx.net)
Date: 10/21/04


Date: Thu, 21 Oct 2004 22:02:46 +0530

Try using DBNull

-- 
Sriram Krishnan
http://www.dotnetjunkies.com/weblog/sriram
"amber" <amber@discussions.microsoft.com> wrote in message 
news:129004EF-3C97-4424-A70D-9A338BF7D543@microsoft.com...
> 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 


Relevant Pages

  • combobox.selectedvalue problem
    ... I have a combobox populated by a dataset filled with data from a SQL view. ... The purpose behind this is to display what the user is to select, ... Amber ... Prev by Date: ...
    (microsoft.public.dotnet.general)
  • Re: Passing Null value to SQL
    ... amber wrote: ... > I'm not sure if this question should go in the SQL forum or this one... ... > I'm using VB.NET and SQL Server. ...
    (microsoft.public.dotnet.general)
  • listbox and linking to database
    ... When one of these is selected, another listbox is populated with data from a SQL table that is linked to the 1st table. ... Is this where the problem lies? ...
    (microsoft.public.dotnet.languages.vb)
  • Re: I have a database of 33 million addresses bank account nos etc
    ... You should better ask a SQL forum. ... Frosty is sarcastic by nature but his sarcasm is well pointed. ...
    (comp.databases.pick)
  • Passing Null value to SQL
    ... 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. ...
    (microsoft.public.dotnet.general)