Click here to Skip to main content
15,890,512 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am using SQL Import wizard to import some fox pro data base tables into SQL SERVER 2008 R2. When the import is done the tables have records which were marked as deleted in the fox pro tables. How can I ignore these deleted records of fox pro tables to be imported into SQL server.

I have googled around for solutions and found to set SET DELETE as ON. But I dont know how it can be done. Could you please help me in solving this issue.



Thanks & Regards,

Farhan
Posted
Comments
Mehdi Gholam 18-Sep-11 2:30am    
It seems to be an open problem with Microsoft, I suggest reading/writing in code and not using the import wizard.
ChandraRam 19-Sep-11 11:12am    
If you still have access to Foxpro, perhaps you can "pack" the data tables?

Either PACK that database or Create a Temp data with non-deleted records before import

Good Luck
 
Share this answer
 
Comments
Farhanishaqui 28-Sep-11 1:52am    
Dear Mashisp,

I have no control over fox pro tables I cannot pack or create temp data on Fox Pro.I can only use SQL server and cannot work on Visual FoxPro. Please suggest me what needs to be done from SQL Server side.
Try this

http://dbfviewereditor.com/dbu-clipper.html

DBF Viewer

I suggest to make a copy of .DBF files first then load the .DBF in the DBFViwer
PACK .DBF. (PACK will remove all flagged deleted records from .DBF)

Once .DBF is PACK then you will be able to import the records

Good Luck.
 
Share this answer
 
Comments
Farhanishaqui 29-Sep-11 2:53am    
Thank you so much Mashisp :) It really helped me. :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900