SQL Server com Ruby on rails

Boa noite pessoal, seu muito trabalho mas consegui fazer conectar o sqlserver com ruby mas só que quando vou inserir qualquer dado da o seguinte erro

ODBC::Error: 22008 (242) [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.: INSERT INTO [usuarios] ([created_at], [updated_at], [login], [senha], [status]) VALUES ('2011-07-13 20:16:38.140', '2011-07-13 20:16:38.140', N'wwwwwwww', N'222', NULL)

Estou usando o Rails 3 meu SO é Win7 e o sql server 2005 , alguém já conseguiu trabalhar com essa combinação ?

  • Alcelyo R Mariz Bacharel em Sistemas de Informação

Boa noite pessoal, seu muito trabalho mas consegui fazer conectar o sqlserver com ruby mas só que quando vou inserir qualquer dado da o seguinte erro

ODBC::Error: 22008 (242) [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.: INSERT INTO [usuarios] ([created_at], [updated_at], [login], [senha], [status]) VALUES ('2011-07-13 20:16:38.140', '2011-07-13 20:16:38.140', N'wwwwwwww', N'222', NULL)

My guess would be that it is interpreting your yyyy-mm-dd date as a yyyy-dd-mm date and falling over because there is no 13th month, although having never used sqlserver I couldn’t hazard a guess as to why

Fred