dbf

Generating dBase II DBF File in C# 3.5

早过忘川 提交于 2019-12-04 06:20:19
问题 I'm generating dbf file to get imported to legacy systems that only accepts dBase II OR III. My aplication is .Net 3.5. I initially started working with this component VFPOLEDB.1 but it only generate dbf files in dBase V format which isn't backwards compatibily. Anyone knows a component or driver to generate de dbf file in dBase II or III Thanks 回答1: Try issuing a call to execute a script that opens the file, then does COPY TO {some file} type FOX2X that should get you the output... There was

Efficient way to bulk insert into Dbase (.dbf) files

百般思念 提交于 2019-12-04 03:31:56
问题 Im currently using OleDBCommand.ExecuteNonQuery (repeatedly called) to insert as much as 350,000 rows into dbase files (*.dbf) at a time from a source DataTable. I'm reusing an OleDbCommand object and OleDbParameters to set the values to be inserted each time when the insert statement is called. Inserting 350,000 rows currently takes my program about 45 mins. Is there a more efficient way to do this? Does something similar to the Bulk Insert option used in SQL Server exist for Dbase (*.dbf)

Get data in a .dbf file using c#

China☆狼群 提交于 2019-12-03 19:53:40
问题 How can I get the data in a .dbf file using c#?? What I want to do is to read the data in each row (same column) to further process them. Thanks. 回答1: You may create a connection string to dbf file, then using OleDb, you can populate a dataset, something like: string constr = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=directoryPath;Extended Properties=dBASE IV;User ID=Admin;Password=;"; using (OleDbConnection con = new OleDbConnection(constr)) { var sql = "select * from " + fileName;

Reading a FoxPro 2.6 data with Java

感情迁移 提交于 2019-12-03 17:15:35
I'm trying to read a FoxPro 2.6 database using java to retrieve data from an older FoxPro based application to format the output better. I've tried using JavaDBF and xBaseJ with no success. Is there a common way to connect that would allow me to get this information into my Java application? It's been a long time since I connected to a FoxPro database from a Java application but this is what I remember having to do: I installed the FoxPro ODBC driver . Setup as Windows System DSN for the FoxPro ODBC driver. Then used the JDBC-ODBC bridge to connect to the FoxPro database. You can try JDBF:

Is there any free tool to convert a file with more than 65000 registers from DBF format to CSV?

五迷三道 提交于 2019-12-03 16:36:49
I need to convert a very large file from DBF format to CSV format. I have tried Microsoft Excel to do the job, but the problem is that I cannot see more than 65500 registers when I open and export the file. Microsoft Access couldn't open the file, too. I have found on google some shareware tools, searching for "DBF to CSV". Have you tried any of these with very large files? Also, any solution that could export to mysql or postgresql database formats will be welcome. Thanks in advance for your responses, best regards, https://github.com/SocialExplorer/FastDBF "Also included here is a small

C# Open DBF file

匿名 (未验证) 提交于 2019-12-03 08:44:33
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm having a problem opening a DBF file - I need to open it, read everything and process it. I tried several solutions (ODBC/OLEDB), several connection string, but nothing worked so far. The problem is, when I execute the SQL command to get everything from the file, nothing gets returned - no rows. What's even more odd, the content of the DBF file being opened get deleted. See the code I have: public override bool OpenFile(string fileName, string subFileName = "") { OleDbConnection con = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0

How to solve “Call to undefined function dbase_open() ” error in windows

匿名 (未验证) 提交于 2019-12-03 02:03:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: Hi i want to load DBF file to mysql, am using xampp,php version 5.5.6 i had write the below code, But am getting Error --- Fatal error: Call to undefined function dbase_open() in C:\xampp\htdocs\imports\import_geo.php on line 47 $dbf = dbase_open ( 'OUTLETS/regions.dbf' , 0 ); $num_records = dbase_numrecords ( $dbf ); for ( $i = 1 ; $i <= $num_records ; $i ++) { $record = dbase_get_record_with_names ( $dbf , $i ); $stmt_bricks -> execute ( array ( ':id' => $next_brick_id , ':type' => 'Region' , ':code' => $record [ 'REG_CODE' ], '

ORA-01537. i want to search where the file is included

匿名 (未验证) 提交于 2019-12-03 01:12:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: SQL > alter tablespace java add datafile 'd:/programming/java.dbf' ; * ERROR at line 1 : ORA - 01537 : cannot add file 'd:/programming/java.dbf' - file already part of database SQL > select TABLESPACE_NAME , FILE_NAME , STATUS from dba_data_files 2 where FILE_NAME = '%JAVA.DBF' ; no rows selected . i just want to know the statement searching where the file is included. 回答1: Use like instead of = : select TABLESPACE_NAME , FILE_NAME , STATUS from dba_data_files where UPPER ( FILE_NAME ) like '%JAVA.DBF' ; 转载请标明出处: ORA-01537. i want

使用dbf-lib对dbf文件进行读写

匿名 (未验证) 提交于 2019-12-02 23:38:02
https://github.com/DANS-KNAW/dans-dbf-lib 。将工程打成jar包就可以调用了。 对于读写dbf,首先要创建一个Table对象。其次需要执行open()方法,否则调用其读写操作都会抛出异常。调用完后需要调用close()方法,不然资源将一直处于被占用状态。这和输入输出流的使用是一样的。 1.读dbf文件记录: 首先调用table构造方法创建Table对象(最好指定编码格式,因为如果dbf文件中存储的有中文很有可能乱码)。 open()方法有两个重载方法,无参默认为只读访问模式(这里指RandomAccessFile的权限)且文件不存在就报错。 getRecordsAt方法和getAllRecords方法都是获取记录,前者是从指定行数获取记录,后者是获取所有记录,即从0行开始获取记录。 然后调用close()关闭资源。关于Table中的方法可查看相关源码。 /** * 获取记录 * @param dbfFile * @param index开始位置 * @param count获取数据条数 * @param charsetName * @return * @throws CorruptedTableException * @throws IOException */ public static List<Map<String, String>>

java 导出dbf格式

匿名 (未验证) 提交于 2019-12-02 21:45:52
<!-- https://mvnrepository.com/artifact/com.github.albfernandez/javadbf --> <dependency> <groupId>com.github.albfernandez</groupId> <artifactId>javadbf</artifactId> <version>1.9.4</version> </dependency> package com.example.easyexcel.dbf; import com.linuxense.javadbf.DBFDataType; import com.linuxense.javadbf.DBFException; import com.linuxense.javadbf.DBFField; import com.linuxense.javadbf.DBFWriter; import java.io.FileOutputStream; import java.io.IOException; /** * javadbf包 导入导出 * * 参考文章:http://priede.bf.lu.lv/ftp/pub/DatuBazes/DBF/javadbf/javadbf-tutorial.html * @author lcm */ public class