On 13 Jul 2011, at 23:33, Alcelyo Roberto <[email protected]> wrote:
> 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
> 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
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.