Solved

utility to import from dbase III dbf into MS sql server 6.5

Posted on 1998-02-05
2
553 Views
Last Modified: 2006-11-17
any utility available to import dbaseIII dbf files into MS sql server 6.5?
Can bcp do the task?
0
Comment
Question by:eekhpang
2 Comments
 
LVL 9

Accepted Solution

by:
cymbolic earned 30 total points
ID: 1090146
Couple of ways you can approach this.

1) BCP won't do it directly, but if you extract the dbf data into a text file, then you can import from there.  If interested in this approach, download DBFLOOK from FilePile, or give me your email address and I'll send you a copy (I am the author).  It allows you to extract from dbf's into text files, with control to select all or specific records and also to select all or only some of the fields in each record, etc.

2) MS Access has readers for dbf files.  An easy approach is to use Access to "Link" to dbf files and also to tables in your sql server via odbc dsn, then you can use sql to process the dbf records into your sql server.  This process can be automated in access via vba module code and macros.

3) I also have a command line controlled program for automating the extract of dbf files into text file formats, if you are interested.

email me at cymbolic@aol.com for more info.
0
 

Expert Comment

by:15bq
ID: 1090147
Hi!

There is a XP that comes with SQL server that can
directly read a DB III file. However it has some limit. It has
numrecords defined as short that means it would only work
to tables with numrecords<32768. Fix this by opening
the source code in C ++ and redim the variable to long
and recompile the DLL.

0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Having an SQL database can be a big investment for a small company. Hardware, setup and of course, the price of software all add up to a big bill that some companies may not be able to absorb.  Luckily, there is a free version SQL Express, but does …
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

856 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