CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> .NET

 Error Data-Field Entry (asp.net VB 1.1, MSSQL2000)

Print topic Send  topic

Author Message
lue

Posts: 20
Posted: 05/16/2005, 12:48 AM

I have this Errormessage when I try to update my table with a
date-field (Textbox with Data Type "Date"):

"The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value. (Microsoft OLE DB Provider for SQL Server)".

All Settings (Format in Project -> Settings -> Project -> Data Display Format an in Connections -> Server -> Date Format) are correct done yyyy-mm-dd (or other, has no influence of error).

In my database (MS SQL 2000), I have a field Date defined as "Date".

It seems, that mm and dd are changed. If the input is 2005-05-01 the value is stored. as 2005-01-05 in the database. Only values with dd > 12 gives this error message. Changing the settings in other date formats has no influence on this error message.

Is there someone who can help me?

Thanks! Chris
View profile  Send private message
lu e
Posted: 05/17/2005, 7:38 AM

We find the solution:

You must set the region on the (DB-)Windows2003-Server German (Germany, not Austria!) and the date format dd.mm.yyyy.

Then you must set the CCS-Server-Dateformat on dd.mm.yyyy HH:nn:ss.

But you must find this ...

Christian
Harshith
Posted: 06/17/2005, 12:33 AM

I need to retrieve the records into the datagrid from the dates picked from 2 datepicker. The error i am getting is "The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value. "

pls help me

eagerly waiting for response
harh

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.