473,414 Members | 1,692 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

SqlDateTime Overflow

Dear Team,

Attempting to insert a record into a SQL database, using the command:

command.ExcuteNonQuery();

Get the following error message in the event log:

SQLDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999
11:59:59 PM

Have searched MSDN Library 2004 and online on MS site and can find nothing
relating to this bizarre error message.

Can you help?

Thanks,

Frodo.


Jul 21 '05 #1
5 7947
I should have stated the following in my original posting:

Am making the call from within a C# program within VS.NET 2003 (MS
Development Environoment 2003 Version 7.1.3088, MS .NET Framework 1.1
Version 1.1.4322) to an SQL 2000 database within MS SQL Enterprize Manager
Version 8.0, all installed on a Windows Server 2003 Standard Edition.

Jul 21 '05 #2

And futher:

The record I am writing to contain no DateTime fields, just:

ID int 4 No nulls
allowed
Surname varchar 50 Nulls allowed
Firstname varchar 50 Nulls allowed.

Frodo
Jul 21 '05 #3
Dear Team,

Ignore this question - I have managed to figure it out.

Thanks,

Frodo.
Jul 21 '05 #4
Have sorted this problem out. Application was attempting to write to a date
field that did not exist.
"FrodoBaggins" <Fr**********@TheShire.com> wrote in message
news:e$**************@tk2msftngp13.phx.gbl...
Dear Team,

Attempting to insert a record into a SQL database, using the command:

command.ExcuteNonQuery();

Get the following error message in the event log:

SQLDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999
11:59:59 PM

Have searched MSDN Library 2004 and online on MS site and can find nothing
relating to this bizarre error message.

Can you help?

Thanks,

Frodo.

Jul 21 '05 #5
Thanks for sharing your experience, Frodo. It can probably benifit others
and help them fix problems.

Have a nice day!

Felix Wu
=============
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
From: "FrodoBaggins" <Fr**********@TheShire.com>
References: <e$**************@tk2msftngp13.phx.gbl>
Subject: Re: SqlDateTime Overflow
Date: Mon, 23 Feb 2004 11:03:09 -0000
Lines: 31
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4807.1700
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700
Message-ID: <uF**************@tk2msftngp13.phx.gbl>
Newsgroups: microsoft.public.dotnet.general
NNTP-Posting-Host: m33-mp1.cvx1-a.bir.dial.ntli.net 62.255.36.33
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftn gp13.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:125727
X-Tomcat-NG: microsoft.public.dotnet.general

Have sorted this problem out. Application was attempting to write to a date
field that did not exist.
"FrodoBaggins" <Fr**********@TheShire.com> wrote in message
news:e$**************@tk2msftngp13.phx.gbl...
Dear Team,

Attempting to insert a record into a SQL database, using the command:

command.ExcuteNonQuery();

Get the following error message in the event log:

SQLDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999
11:59:59 PM

Have searched MSDN Library 2004 and online on MS site and can find nothing relating to this bizarre error message.

Can you help?

Thanks,

Frodo.



Jul 21 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: poppy | last post by:
I set up my parameters in code as follows : lTTState.startDate = Today.AddDays(-10) lTTState.startDate = Today lSqlCmd.Parameters.Add(New SqlParameter("@startDate", SqlDbType.DateTime))...
1
by: Paperback Writer | last post by:
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 ?...
5
by: FrodoBaggins | last post by:
Dear Team, Attempting to insert a record into a SQL database, using the command: command.ExcuteNonQuery(); Get the following error message in the event log: SQLDateTime overflow. Must be...
5
by: mlafarlett | last post by:
Alright..I've found lots of info on this error and most say assign System.DBNull.Value, System.Convert.DBNull, or System.Data.SqlTypes.SqlDateTime.Null to my stored proc param and the problem will...
3
by: Mike9900 | last post by:
Hello, I am getting SqlDateTime overflow if I use .NET remoting on Windows XP and Windows XP is the server where the SQL server is located at. If my computer is Windows 2003 where the sql...
1
by: lairpr | last post by:
I am having this kind of error when trying to insert a null value; SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59:59 PM. bellow is my code, thanks protected...
3
by: baburk | last post by:
HI I want to pass null or "" When I pass like that I got an error System.Data.SqlTypes.SqlTypeException: SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59:59...
4
by: jhansi xavier | last post by:
SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59:59 PM.
0
by: maolimix | last post by:
Hi to all, I have a trouble with datetime...now I explain.. I must to store to a C# variable the values from a "Datetime column" of Sql Server 2005. I tried 3 methods ...in the first two I never...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.