Hi There,
I wrote a program to convert a VFP file into SQL, all work OK except when the date field is empty.
My Sql Stament will be something like this:
=SQLEXEC(nHandle,"INSERT INTO filename(count,date) VALUES(95,' / / ')"
The error I get is:
The conversion of char data type to smalldatetime data type resulted in an out-of-range smalldatetime value.
The statement has been terminated.
The fields in SQL hase date as smalldatetime
Please advice
Thanks
Sal
I wrote a program to convert a VFP file into SQL, all work OK except when the date field is empty.
My Sql Stament will be something like this:
=SQLEXEC(nHandle,"INSERT INTO filename(count,date) VALUES(95,' / / ')"
The error I get is:
The conversion of char data type to smalldatetime data type resulted in an out-of-range smalldatetime value.
The statement has been terminated.
The fields in SQL hase date as smalldatetime
Please advice
Thanks
Sal