Doing a little more research on this:

This happens when doing an INSERT. And the exact error I get:

DataError: ('22007', '[22007] [FreeTDS][SQL Server]Syntax error converting 
datetime from character string. (241) (SQLExecDirectW)')

What's happening is my application is importing data from a legacy database 
into a new database. For some reason, instead of returning None when 
retrieving NULL datetimes, it is now returning an empty Storage() object. So 
when my import script tried to write an empty Storage() object as a datetime 
value, MSSQL gave the syntax error.

Reply via email to