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 , algum j
conseguiu trabalhar com essa combinao ?
- Alcelyo R Mariz
Bacharel em Sistemas de Informao
On 13 Jul 2011, at 23:33, Alcelyo R. [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