Importing FoxPro 2.6 for Dos into SQL Server 2000 using DTS.

Posted on 2004-11-17
Medium Priority
Last Modified: 2012-05-05
Will it be possible to imort FoxPro 2.6 for Dos into SQL Server 2000 using DTS without any issues? Will existing drivers in SQL for FoxPro work or will I need something more?
Any help will be greatly appreciated!
Question by:Lizadiesel
LVL 33

Accepted Solution

CarlWarner earned 100 total points
ID: 12609306
Since you're going from SQL Server to a FoxPro table (.dbf), you should have no real issues grabbing that data with existing drivers.  The later (latest) drivers support that older .dbf format.  Of course, I'm not entirely sure to what existing driver you're referring. If you make the assumption that a dBASE driver will work, well, it might and it might not.  Depending on what type of data is in the FoxPro table, the dBASE driver may not always work because the format could be different enough to make the driver throw errors.

If you have a Visual FoxPro driver handy, you should have no issues whatsoever (as long as the data isn't corrupt).

Visual FoxPro ODBC Driver

Assisted Solution

chanito earned 100 total points
ID: 12616206
The issue I've seen with FoxPro and DTS is you need to define a data source in the control panel or administrative tools (DSN) for it to work.  Since it's FP 2.6 you need to define it as a free table directory.

If you use the generic Visual FoxPro Tables DSN it won't work.

I think the other issue I've come across is SQL Server doesn't like empty date fields.  If you have date fields make sure you put a value.  You can always script it later in a data driven query step to replace 1/1/1900 with a null value or something.

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This post contains step-by-step instructions for setting up alerting in Percona Monitoring and Management (PMM) using Grafana.
Backups and Disaster RecoveryIn this post, we’ll look at strategies for backups and disaster recovery.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question