I'll post a complete bug report later, have to reinstall SQL Server first, but would like to know if anybody else is having this problem:
In the latest SVNs, TVClient almost stopped working since it can't communicate properly with the database. This SQL error message appears in the logs, reported by the Gentle.Framework:
The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value.
A sample SQL that's causing the problem is:
select idProgram, idChannel, startTime, endTime, title, description, genre, notify from Program where idChannel = 5 and ((EndTime > '2007-01-26 01:00:00' and EndTime < '2007-01-26 02:59:00') or (StartTime >= '2007-01-26 01:00:00' and StartTime <= '2007-01-26 02:59:00') or (StartTime <= '2007-01-26 01:00:00' and EndTime >= '2007-01-26 02:59:00')) order by startTime asc
Changing it to something like this solves the problem:
select idProgram, idChannel, startTime, endTime, title, description, genre, notify from Program where idChannel = 5 and ((EndTime > '2007-26-01 01:00:00' and EndTime < '2007-26-01 02:59:00') or (StartTime >= '2007-26-01 01:00:00' and StartTime <= '2007-26-01 02:59:00') or (StartTime <= '2007-26-01 01:00:00' and EndTime >= '2007-26-01 02:59:00')) order by startTime asc
All machines (client and Server) are configured with regional settings of United States. Haven't had this problems with builds up to 12646, no matter which region setting I had. Tested now with 12736 and 12752.
anybody else seeing this?
In the latest SVNs, TVClient almost stopped working since it can't communicate properly with the database. This SQL error message appears in the logs, reported by the Gentle.Framework:
The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value.
A sample SQL that's causing the problem is:
select idProgram, idChannel, startTime, endTime, title, description, genre, notify from Program where idChannel = 5 and ((EndTime > '2007-01-26 01:00:00' and EndTime < '2007-01-26 02:59:00') or (StartTime >= '2007-01-26 01:00:00' and StartTime <= '2007-01-26 02:59:00') or (StartTime <= '2007-01-26 01:00:00' and EndTime >= '2007-01-26 02:59:00')) order by startTime asc
Changing it to something like this solves the problem:
select idProgram, idChannel, startTime, endTime, title, description, genre, notify from Program where idChannel = 5 and ((EndTime > '2007-26-01 01:00:00' and EndTime < '2007-26-01 02:59:00') or (StartTime >= '2007-26-01 01:00:00' and StartTime <= '2007-26-01 02:59:00') or (StartTime <= '2007-26-01 01:00:00' and EndTime >= '2007-26-01 02:59:00')) order by startTime asc
All machines (client and Server) are configured with regional settings of United States. Haven't had this problems with builds up to 12646, no matter which region setting I had. Tested now with 12736 and 12752.
anybody else seeing this?
Brazil