?
Solved

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

Posted on 1998-02-05
2
Medium Priority
?
563 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 9

Accepted Solution

by:
cymbolic earned 120 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

How Blockchain Is Impacting Every Industry

Blockchain expert Alex Tapscott talks to Acronis VP Frank Jablonski about this revolutionary technology and how it's making inroads into other industries and facets of everyday life.

Question has a verified solution.

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

In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
What if you have to shut down the entire Citrix infrastructure for hardware maintenance, software upgrades or "the unknown"? I developed this plan for "the unknown" and hope that it helps you as well. This article explains how to properly shut down …
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…
Suggested Courses

770 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