I'm trying to bulk load tables in SQL 2005 from a Visual FoxPro 7 database. We have the latest VFP OLE DB driver loaded and have run into an odd issue.
When viewed from the table designer in VFP the tables have all columns set to not null (null column is not checked). However there are lots of rows with "empty" values for columns with both numeric and date data types. When I run a select on the tables from SQL these "empty" values come back as a default value based on the columns data type; 0 for numeric columns and 12/30/1899 for date fields.
One question, how are these fields that are set to not allow a null value allowed to be empty When I select them with an OLD ODBC 2.0 driver in an ODBC test app they are filled with spaces. Numeric fields should not be filled with spaces... Is this a FoxPro thing
Next, is there a way to turn off the insertion of default values in the OLE DB driver Or if not, can the old odbc driver be used from SQL 2005 I have a system DSN defined that works from an ODBC test app when using ODBC 2.0 syntax, but SQL 2005 doesn't seem to want to connect to it.
TIA,
Ed