CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: viperbyte

Search: Search took 0.16 seconds.

  1. Replies
    1
    Views
    1,114

    Re: How Do You Add a Null in a DateTime Field?

    Never mind guys. I found the solution. Thanks for looking.

    cmd.Parameters.AddWithValue("@ShippedDate", DBNull.Value);
  2. Replies
    1
    Views
    1,114

    How Do You Add a Null in a DateTime Field?

    Good morning everybody.

    I'm trying to add a null into a SQL Server DateTime column called ShippedDate. With the below code I get an error message that says "Nullable object must have a value". ...
Results 1 to 2 of 2





Click Here to Expand Forum to Full Width

Featured