Ciao!!!
![]()
Ho un problema sulla query:
L'errore è il seguente:codice:codice:INSERT INTO CartaIdentita (Nome,Cognome,DataNascita,Indirizzo,CAP,DataIns) VALUES ('Paolo','Rossi', '2000/04/01','Via Roma','20100','08/04/2009 15.23.27')
Server: Msg 242, Level 16, State 3, Line 1
The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value.
The statement has been terminated.
Il problema è sulla seconda data!
Infatti se inserisco al posto di '08/04/2009 15.23.27' la data '04/08/2009 3:23:27 PM' (che è la data contenuta nella tabella) la query viene eseguita.
Come evitare il problema con il formato delle date?

Ciao!!!
Rispondi quotando