SqlDateTime overflow.

  • Thread starter Paperback Writer
  • Start date
P

Paperback Writer

I need to insert null in a DateTime field and in the ASP.Net i got this
error:
SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999
11:59:59 PM.

How to accomplish that ?
 
J

Jens Süßmeyer

Did you try to insert System.DBNull.Value in ADO.NET ? If the columns allows
null values that´ll work for you.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top