Dear Team,
Attempting to insert a record into a SQL database, using the command:
command.ExcuteN onQuery();
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. 5 7965
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.
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
Dear Team,
Ignore this question - I have managed to figure it out.
Thanks,
Frodo.
Have sorted this problem out. Application was attempting to write to a date
field that did not exist.
"FrodoBaggi ns" <Fr**********@T heShire.com> wrote in message
news:e$******** ******@tk2msftn gp13.phx.gbl... Dear Team,
Attempting to insert a record into a SQL database, using the command:
command.ExcuteN onQuery();
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.
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: "FrodoBaggi ns" <Fr**********@T heShire.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.publi c.dotnet.genera l NNTP-Posting-Host: m33-mp1.cvx1-a.bir.dial.ntli .net 62.255.36.33 Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!tk2 msftngp13.phx.g bl Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.genera l:125727 X-Tomcat-NG: microsoft.publi c.dotnet.genera l
Have sorted this problem out. Application was attempting to write to a date field that did not exist.
"FrodoBaggin s" <Fr**********@T heShire.com> wrote in message news:e$******* *******@tk2msft ngp13.phx.gbl.. . Dear Team,
Attempting to insert a record into a SQL database, using the command:
command.ExcuteN onQuery();
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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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))
lSqlCmd.Parameters("@startDate").Value =
lTTState.startDate
lSqlCmd.Parameters.Add(New SqlParameter("@endDate",
SqlDbType.DateTime))
lSqlCmd.Parameters("@endDate").Value = lTTState.endDate
|
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 ?
--
Please, check my theSpoke:
http://www.thespoke.net/MyBlog/dgroh/MyBlog.aspx
|
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 between 1/1/1753 12:00:00 AM and 12/31/9999
11:59:59 PM
|
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 be solved...NOT. I suspect all of these are the same
thing, however, none solve my problem. What I have is vb.net code
trying to put a null in a sql2000 datatime field. To further confuse
things, it works on my PC and not from another. I...
|
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 server is running and I use client as the
windows XP I do not get this error.
--
Mike
| |
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 void btnAddTime_Click(object sender, EventArgs e)
{
try
{
|
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 PM.
Is there is any possibility to send null or ""
|
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.
|
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 was able to get the Millisecond from datacolumn.
I explain the methods...
1) I created a Datatable that contain the column... then I fill a datarow with the current value. The system automatically
converts the Sqldatetime in System.Datetime but...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |