renatoboscolo
IS-IT--Management
The following sql command works fine in my sql 2000 but not in my sql 2008:
select * from table1 where
fd_data >= convert(varchar(10),GETDATE(),101)
SQL 2000
- windows server 2003 portugues
- regional settings: English (United States)
- local: brasil
- non unicode: English (United States)
SQL 2008
- windows server 2008 portugues
- regional settings: English (United States)
- local: brasil
- non unicode: English (United States)
Error in SQL 2008:
"The conversion of a data type varchar to a datetime data type resulted in a value outside the range"
I can´t understand why doesn´t work since the regional setting are identical.
thanks for any help!
select * from table1 where
fd_data >= convert(varchar(10),GETDATE(),101)
SQL 2000
- windows server 2003 portugues
- regional settings: English (United States)
- local: brasil
- non unicode: English (United States)
SQL 2008
- windows server 2008 portugues
- regional settings: English (United States)
- local: brasil
- non unicode: English (United States)
Error in SQL 2008:
"The conversion of a data type varchar to a datetime data type resulted in a value outside the range"
I can´t understand why doesn´t work since the regional setting are identical.
thanks for any help!