dbf

Recursive LINQ get hierarchy?

微笑、不失礼 提交于 2019-12-13 08:29:29
问题 I have this result table after my query Id Per_Router Prod_No Rout_No NULL 1 81253 77976 NULL 1 81235 77976 NULL 1 67907 77976 NULL 1 66772 77976 21202 2 NULL 77976 41978 1 NULL 77976 41979 1 NULL 77976 using LINQPAD I want to extract the whole hierarchy. As starting point 77976 but I want to get also for each sub-component ex. 81253, 81235, etc - recursive? Using query from db is very long to get each sub component record (Foxpro 6) I declare my self a beginner in this var query = from p in

Importing DBF files to MS Excel 2007

喜你入骨 提交于 2019-12-13 07:59:55
问题 I am trying to import DBF file to Excel. But after I am importing it, it doesnt show data in proper format. I guess there is some problem with encoding. I tried using different encodings in "File Origin" option. Could anybody guide me in this matter.? Thanks 回答1: It is an encoding issue indeed. Windows "translates" your DBF characters to the default system code page when opening the file. There are ways around if you know your original code page but it is not for the faint hearted. 回答2: Try

Search in DBF file using .idx file

别说谁变了你拦得住时间么 提交于 2019-12-13 06:11:26
问题 I have a DBF file and a index file. I want to read index file and search records satisfy some condition. (for example: search records which its StudentName begin with "A" by using Student.DBF and StudentName.idx) How do I do this programmatically? 回答1: It would be easiest to query via OleDB Connection using System.Data.OleDb; using System.Data; OleDbConnection oConn = new OleDbConnection("Provider=VFPOLEDB.1;Data Source=C:\\PathToYourDataDirectory"); OleDbCommand oCmd = new OleDbCommand();

dbf files in Excel with SQL

狂风中的少年 提交于 2019-12-13 05:52:42
问题 Every day i need to make a report for salesman, we have 2 dbf files from witch i automatic want to make the report in Excel. Report from 1 dbf file works perfect, but i don't know how to join 2 dbf files in VBA. I have to following script: Option Explicit Sub ReadDBF() Dim con As Object Dim rs As Object Dim DBFFolder As String Dim FileName As String Dim FileName1 As String Dim sql As String Dim myValues() As String Dim i As Integer Dim j As Integer Application.ScreenUpdating = False DBFFolder

Writing to FoxPro-DBFs maintaining indexfiles (idx or cdx) with Python

无人久伴 提交于 2019-12-13 01:16:50
问题 I'm using the Python dbf lib by Ethan Furman - which is a great tool - to write to some Foxpro-tables ('free tables'). My problem is, that I need the accompanying index-files staying up to date. I have read, that Ethan Furman was working on it, but it was a notice from 2011. I couldn't find any info about, if he was successful. Is there a solution for it (or maybe with some other lib)? 来源: https://stackoverflow.com/questions/37470111/writing-to-foxpro-dbfs-maintaining-indexfiles-idx-or-cdx

Sorting a table physically in Delphi

大憨熊 提交于 2019-12-12 20:15:05
问题 Delphi does not seem to like multi-field indexes. How do I physically sort a a table so that I wind up with a table that has the rows in the desired order? Example: mytable.dbf Field Field-Name Field-Type Size 0 Payer Character 35 1 Payee Character 35 2 PayDate Date 3 Amount Currency I need to produce a table sorted alphabetically by "Payee"+"Payer" When I tried using an index of "Payee+Payer", I got an error: "Field Index out of range" 回答1: If you're still using BDE you can use the BDE API

ADG 误删除system01.dbf故障处理

偶尔善良 提交于 2019-12-12 15:29:54
一、描述 11.2.0.4单实例主备库,主库system01.dbf误删除,导致数据库启动失败。 二、现象 SQL> startup ORACLE instance started. Total System Global Area 3089920000 bytes Fixed Size 2257232 bytes Variable Size 654315184 bytes Database Buffers 2415919104 bytes Redo Buffers 17428480 bytes Database mounted. ORA-01157: cannot identify/lock data file 1 - see DBWR trace file ORA-01110: data file 1: '/oradata/devdb/system01.dbf' 三、处理过程 停备库,传输数据文件 scp system01.dbf 1xx.55.3.xx:/oradata/devdb/ 启动主库、恢复数据文件 SQL> startup ORACLE instance started. Total System Global Area 3089920000 bytes Fixed Size 2257232 bytes Variable Size 654315184 bytes

Is there a size limit to opening files in PHP?

孤街醉人 提交于 2019-12-12 14:09:26
问题 I am using a dbase extension in PHP to open up a large DBF of 4.5+ GB but it seems to give bum records from 9.6 million onward even though the database looks perfectly fine in any viewer, etc. Do I need to somehow crank up a memory limit somewhere? 回答1: try setting limits on the number of records on show, use pagination and limit to about 15, this should help. I have never heard of PHP not opening a file because of size however you could be putting too much data on a page and causing an

merge multiple dbf files with non-matching headers in R

折月煮酒 提交于 2019-12-12 06:38:02
问题 I have over 800 dbf files which I need to import and merge in R. I have been able to bring in all of the files using this code: library(foreign) setwd("c:/temp/help/") files <- list.files(pattern="\\.dbf$") all.the.data <- lapply(files, read.dbf, as.is=FALSE) DATA <- do.call("rbind",all.the.data) However, these dbf files have different numbers of columns and even if they sometimes have the same number of columns, those headers may be different. Here are four of the dbf files to provide an

Insert a Date field into a Clipper Database using OLE

你离开我真会死。 提交于 2019-12-12 01:35:13
问题 We're trying to insert data into a clipper database file (DBF file with NTX index file). For a variety of reasons, we cannot change the database format. We are currently seeing two issues: With our existing code, we are not able to update or utilize the NTX index file (I believe). We would like to be able to do this. Do you know of an OLE or ODBC driver that can do this? We are able to insert a row into the clipper database file (DBF) as long as we do not include a date. If we include a date,