How can you import a foxpro DBF file in SQL Server?
相关问题
- sql execution latency when assign to a variable
- What is the best way to cache a table from a (SQL)
- php PDO::FETCH_ASSOC doesnt detect select after ba
- Bulk update SQL Server C#
- SQL to Parse a Key-Value String
相关文章
- Entity Framework 4.3.1 failing to create (/open) a
- Code for inserting data into SQL Server database u
- Delete Every Alternate Row in SQL
- Linux based PHP install connecting to MsSQL Server
- SQL Azure Reset autoincrement
- How do we alias a Sql Server instance name used in
- Is recursion good in SQL Server?
- How can I convert a OLE Automation Date value to a
Use a linked server or use openrowset, example
http://elphsoft.com/dbfcommander.html can export from DBF to SQL Server and vice versa
I was able to use the answer from jnovation but since there was something wrong with my fields, I simply selected specific fields instead of all, like:
Very exciting to finally have a workable answer thanks to everyone here!
What finally worked for us was to use the FoxPro OLEDB Driver and use the following syntax. In our case we are using SQL 2008.
Substitute the
\\VM-GIS...
with the location of your DBF file, either UNC or drive path. Also, substitutemymap
after theFROM
with the name of the DBF file without the .dbf extension.This tools allows you to import to and from SQL Server.