Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 1998-02-05
2
Medium Priority
?
567 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

Industry Leaders: 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

For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
An alternative to the "For XML" way of pivoting and concatenating result sets into strings, and an easy introduction to "common table expressions" (CTEs). Being someone who is always looking for alternatives to "work your data", I came across this …
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…
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

618 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