Solved

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

Posted on 1998-02-05
2
560 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 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

The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

Question has a verified solution.

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

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
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…

688 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