Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Import from Foxpro 2.6 to SQL2000 null date value populates

Status
Not open for further replies.

abuchan

MIS
Dec 7, 2001
9
CA
While doing a data transformation from Foxpro 2.6 to SQL2000 it would seem that all date fields that are empty in the source populate in SQL as '1899-12-30'. Is there any way on the conversion task to keep this field empty?
 
I had a simliar problem and added an execute SQL task after the import (on success)to do the following:
UPDATE Airport
SET FacInfoDate = NULL
WHERE FacInfoDate = '1899-12-30'
GO

JUst change the column and table name and you've got it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top