从dbf转换为sql表 [英] converting from dbf to sql table

查看:94
本文介绍了从dbf转换为sql表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将dbf转换为sql表....如果有可用的软件,则提到tat名称...紧急...

how to convert dbf to sql table....if any software available mention tat name...urgent...

推荐答案

不,它''一点都不急.您无能为力并不是我们真正的问题.我不知道任何程序,但是肯定会很容易编写代码以连接到两个源并复制表,前提是您的各种SQL没有可使用的导入工具.
No, it''s not urgent at all. Your inability to do your job is not really our problem. I don''t know of any programs, but surely it''s not hard to write code to connect to both sources and copy the tables, assuming your variety of SQL has no import tool that you can use.


在SQL Server中使用链接服务器.

使用MS OLEDB Provider 4.0并将其命名为DBFConverter,并在其中提供所有DBF文件可用的文件夹名称.

例如:在配置的文件夹中有一个名为"EmpData.BDF"的DBf文件.使用以下查询检索所有行

选择* from DBFConverter ... EmpData

如果要将其转换为SQL表,

从DBFConverter ... EmpData选择*到NewT​​ableName中

希望能帮助到你!! :)
Use Linked Server in SQL server.

Use MS OLEDB Provider 4.0 and name it DBFConverter and give the folder name where your all DBF files available.

Eg: the DBf file named "EmpData.BDF" is available in configured folder. Use the following query to retrieve all rows

Select * from DBFConverter...EmpData

If you want to convert it to SQL table,

Select * into NewTableName from DBFConverter...EmpData

Hope it helps!! :)


这篇关于从dbf转换为sql表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆