dbf

Import DBF files into Sql Server

試著忘記壹切 提交于 2020-01-04 09:09:17
问题 I need a little help figuring this out because I'm new to stored procedures. I am trying to import a .DBF table into Sql Server 2008 using this store procedure. CREATE PROCEDURE spImportDB -- Add the parameters for the stored procedure here AS BEGIN -- Insert statements for procedure here SELECT * into Products FROM OPENROWSET('vfpoledb','C:\Users\Admin\Doc\Data\DBF', 'SELECT * FROM MyTable') END GO I receive this error. The OLE DB provider "vfpoledb" has not been registered.This isn't true,

DBF - encoding cp1250

扶醉桌前 提交于 2020-01-03 10:23:12
问题 I have dbf database encoded in cp1250 and I am reading this database using folowing code: import csv from dbfpy import dbf import os import sys filename = sys.argv[1] if filename.endswith('.dbf'): print "Converting %s to csv" % filename csv_fn = filename[:-4]+ ".csv" with open(csv_fn,'wb') as csvfile: in_db = dbf.Dbf(filename) out_csv = csv.writer(csvfile) names = [] for field in in_db.header.fields: names.append(field.name) #out_csv.writerow(names) for rec in in_db: out_csv.writerow(rec

How to add a field to a dbf file?

自闭症网瘾萝莉.ら 提交于 2020-01-03 03:13:07
问题 I have something about like this: from dbfpy import dbf import random db = dbf.Dbf('DMWWGS84/DMAWGS84.dbf',new=False) db.addField(("Data","D")) for record in db: print record record["Data"]=random.random() db.close() But it complains: Traceback (most recent call last): File "merge_csv.py", line 5, in <module> db.addField(("Data","D")) File "/Users/alex/anaconda2/lib/python2.7/site-packages/dbfpy/dbf.py", line 246, in addField raise TypeError("At least one record was added, " TypeError: At

How can I extract the address information from a Compressed ESRI shapefile datasource?

有些话、适合烂在心里 提交于 2020-01-03 01:22:15
问题 When I download the zip file from the website it contains files with the following extensions: .dbf .prj .sbn .sbx .shp .shp.xml .shx Is this is a common data file format that I download or purchase a converter? I think this is some kind of mapping data file but I all need are the addresses it contains to push into our existing database. Specifically and related to programming. How can I setup a .NET Datasource to this group of files or just the .dbf file that actually contains the

Dynamically change database type, source etc in Crystal Reports (for Visual Studio 2012)

删除回忆录丶 提交于 2020-01-01 19:57:06
问题 I've researched many different ways of how to dynamically change the datasource connection here on StackOverflow. I used and verified almost every c# and vb.net example I could find, but somehow things won't work out as they should. The idea of our project is to change the datasource connections from the old reports - that are using an xBase dll - to crdb_ado.dll with the VFPOLEDB-provider to connect to Visual Foxpro DBF files (each file representing one table). I've downloaded the latest

How to read FoxPro Memo with PHP?

若如初见. 提交于 2020-01-01 07:12:34
问题 I have to convert .DBF and .FPT files from Visual FoxPro to MySQL. Right now my script works for .DBF files, it opens and reads them with dbase_open() and dbase_get_record_with_names() and then executes the MySQL INSERT commands. However, some fields of these .DBF files are of type MEMO and therefore stored in a separate files ending in .FPT. How do I read this file? I have found the specifications of this filetype in MSDN, but I don't know how I can read this file byte-wise with PHP (also, I

how to get IIS to work with dbf files?

安稳与你 提交于 2019-12-31 03:55:23
问题 problem is the following: raised the IIS server on Windows XP, but when accessing the dbf files crashes exception. driver to work with files vfpoledb set. out of the visual studio everything works fine. could something else be done? 回答1: I don't know if its case sensitive or not, but the connection string should be something like String connString = "Provider=VFPOLEDB.1; Data Source= C:\Your\Path\OnIISMachine\YourDatabase.dbc;" If that's ok, then do you have the proper OleDB driver from

How to open DBase files (.DBF) in Matlab?

别来无恙 提交于 2019-12-30 09:33:21
问题 I've googled and searched through Matlab Central, but cannot find any way to open DBF files directly in Matlab. There are some references to DBFREAD function in TMW File Exchange, but it's not available anymore. Is it really a problem? I do have Database toolbox, but could not find dbf support there. I don't want to use Excel or other tools for converting files outside of Matlab, since I have a lot of files to process. ODBC also is not good, I need the code to work under Mac and Unix as well.

No table is open in the current work area

让人想犯罪 __ 提交于 2019-12-25 01:35:05
问题 While trying to create CDX file on existing DBF file using below code, I'm getting an exception saying " No table is open in the current work area" . Language - C# Exception Details - Message - No table is open in the current work area. Source - Microsoft OLE DB Provider for Visual FoxPro Below is code snippet: public void CreateIndex() { var cdxExpressions = new List<CDXExpression> { new CDXExpression { expression = "ENTRY_DATE", name = "cdx_p1"}, new CDXExpression { expression = "ENTRY_CODE

The Microsoft jet database engine could not find object while reading dbf file

北城以北 提交于 2019-12-24 15:51:48
问题 I am facing very strange issue. I have written class to which reads dbf file through oledb connection. I have downloaded dbf file from internet and it is reading all data correctly. DBF file location: E:\Projects\SLAVE.DBF I am facing following 2 issues 1) When I try to read other dbf file then it is reading only its table fields. it is not reading table fields data. E:\Projects\line75.dbf 2) The other issue I am facing I have DBF files when I put these files in location then i am getting