Query Data using Date
From: wira659 (wira659_at_discussions.microsoft.com)
Date: 02/27/05
- Next message: Uri Dimant: "Re: help with join please"
- Previous message: Uri Dimant: "Re: Can't login into SQL Server Database"
- Next in thread: Uri Dimant: "Re: Query Data using Date"
- Reply: Uri Dimant: "Re: Query Data using Date"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 26 Feb 2005 21:57:02 -0800
I using Windows XP SP2. Install SQL Server 2000 Developer Edition.
I want to query a table which contains a column of data type datetime using
ASP form, where the input of type text. Before querying I cahnge input text
into date format using CDate() function.
When I run the query I got this message:
"Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E07)
[Microsoft][ODBC SQL Server Driver][SQL Server]The conversion of a char data
type to a datetime data type resulted in an out-of-range datetime value.
"
I have another Machine Installed with Windows 2000 Pro, SQL Server 2000
Developer Ed. When I ran the same query It works.
Wish to know what is the problem?
- Next message: Uri Dimant: "Re: help with join please"
- Previous message: Uri Dimant: "Re: Can't login into SQL Server Database"
- Next in thread: Uri Dimant: "Re: Query Data using Date"
- Reply: Uri Dimant: "Re: Query Data using Date"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|