How to go from DBF files to SQL Server 2008?

Unknown Coder picture Unknown Coder · Jun 25, 2010 · Viewed 38.7k times · Source

I have an application that uses DBF files and I need to import them to SQL Server 2008. However, I also need to modify some of the data along the way and some columns will be added to tables while others will be deprecated.

So far I'm using DBF -> Access -> MS Migration Assistant -> SQL Server 2008. But I think that there has to be a better way to handle it. I'd like to get away from the Migration Assistant because it doesn't let you modify the data when you import it.

Answer

mindless.panda picture mindless.panda · Jul 7, 2011

I was able to import DBF into SQL Server 2008 by using the information at this link.

In particular I:

  1. Used Import/Export wizard, selecting the "Microsoft Office 12.0 Access Database Engine OLE DB Pro..." as the Data source in the dropdown.
  2. Opened the Properties dialog for the Access OLE DB connection.
  3. Specified the folder containg the DBFs as the Data Source.
  4. Set Extended Properties to "dBASE 5.0"

I then set destination as my local sql server and upon hitting next was able to see each DBF file in the folder as a possible table/view to import from. Clicking on them created the similarly named table in the specified database.