Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2002-04-21 : 22:28:26
|
| Stefan writes "Why does this query,SELECT COUNT(*) AS NumberOnlineFROM CGLOBALWHERE (lvisit > CONVERT(DATETIME, '2002-04-18 9:18:45', 102)) AND (lvisit < CONVERT(DATETIME, '2002-04-18 9:50:38', 102)), result into this error: "ODBC Error Code = 22008 (Datetime field overflow)[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."The language is set to english, the server too." |
|
|
Nazim
A custom title
1408 Posts |
Posted - 2002-04-22 : 00:48:24
|
| Try this after setting datetime settings to yyyymmddset dateformat yyyymmddHTH-------------------------------------------------------------- |
 |
|
|
|
|
|