Solved

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

Posted on 1998-02-05
2
542 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
Comment Utility
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
Comment Utility
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
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…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.

744 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now