foxpro

there is any way to match the method RAND(INT) of Visual Fox Pro and C #. Net

為{幸葍}努か 提交于 2019-12-01 20:46:46
I'm migrating a Visual Fox Pro code to C #. NET What makes the Visual Fox Pro : generates a string of 5 digits ("48963") based on a text string (captured in a textbox), if you always enter the same text string will get that string always 5 digits (no reverse), my code in C #. NET should generate the same string. There is some code that I can not play in dot.net Rand (int) in VisualFoxPro: rand(intValue) in C #. net: Random r = new Random (); return r.Next(intValue); in C# I can´t generate a single value based on the same intValue I know they are very different libraries (VFP and C #) but not

How do I create a new VFP (OLEDB) table from an existing one using .NET?

北城余情 提交于 2019-12-01 09:32:59
We have an application that creates a number of Visual Foxpro (DBF) tables. Each of those tables have a different schema, but they all contain a known date field. I've been asked to create another application (in C#) that will copy the last week's worth of data from each table to a new table (in a different folder to the source tables). The distinct tables will remain (e.g. if there are three source tables, there will be three destination tables). Over time the tables may change (e.g. new fields added), so I can't make assumptions about table structure (apart from the existence of the

How do I create a new VFP (OLEDB) table from an existing one using .NET?

随声附和 提交于 2019-12-01 06:52:06
问题 We have an application that creates a number of Visual Foxpro (DBF) tables. Each of those tables have a different schema, but they all contain a known date field. I've been asked to create another application (in C#) that will copy the last week's worth of data from each table to a new table (in a different folder to the source tables). The distinct tables will remain (e.g. if there are three source tables, there will be three destination tables). Over time the tables may change (e.g. new

Read foxpro DB using php/Java

自作多情 提交于 2019-11-30 18:59:16
问题 I am looking for a code snippet/library to read data from third party foxpro DB over the Net using php/Java from a Linux server. Is there any library available? Some people seem to be using Dbase library for php? Does that work? What parameters do i need from the Foxpro DB other than the default (databasename, username, password). DBF name, connection string ?? 回答1: A while back, i was researching for the same solution and hit many dead ends. i wanted a solution which worked with php though.

How to convert Visual Foxpro database into SQL Server database

烂漫一生 提交于 2019-11-30 13:36:38
One of my clients has a Foxpro database ( .DBF file). I need to convert it into a SQL Server 2008 database. Does anyone have any idea how to do this? Kindly give me solution. Thanks in advance.... Try the following steps: 1.Create ODBC Data Source to DBF file 2.Using SQL Server Import Data Wizard (right click to database in the SSMS) 3.Choose Data provider for ODBC as data source 4.Map and import your data You can use the "Upsizing Wizard" from the Visual FoxPro program, it's located on Tools -> Wizards -> Upsizing Wizard. If you try this keep on mind two things: You need add the DBFs to a

What's the easiest way to read a FoxPro DBF file from Python?

六眼飞鱼酱① 提交于 2019-11-29 20:20:08
I've got a bunch of FoxPro (VFP9) DBF files on my Ubuntu system, is there a library to open these in Python? I only need to read them, and would preferably have access to the memo fields too. Update : Thanks @cnu, I used Yusdi Santoso's dbf.py and it works nicely. One gotcha: The memo file name extension must be lower case, i.e. .fpt , not .FPT which was how the filename came over from Windows. cnu You can try this recipe on Active State . There is also a DBFReader module which you can try. For support for memo fields . I prefer dbfpy . It supports both reading and writing of .DBF files and

Trying to Import FoxPro DBF File to SQL Server

女生的网名这么多〃 提交于 2019-11-29 08:47:35
As the title says, I'm trying to import a FoxPro dbf file into sql server using openrowset. At first I tried to export the DBF to an xls file and import using the Import/Export wizard. This works pretty well normally, but there is one field that sometimes holds a really long string, and this string is being truncated at 4096 characters during the export from the dbf to xls. I found an old post with instructions on how to do this using openrowset. When I try the first answer: select * from openrowset('MSDASQL', 'Driver=Microsoft Visual FoxPro Driver; SourceDB=\\path\; SourceType=DBF', 'select *

What's the easiest way to read a FoxPro DBF file from Python?

五迷三道 提交于 2019-11-28 16:20:58
问题 I've got a bunch of FoxPro (VFP9) DBF files on my Ubuntu system, is there a library to open these in Python? I only need to read them, and would preferably have access to the memo fields too. Update : Thanks @cnu, I used Yusdi Santoso's dbf.py and it works nicely. One gotcha: The memo file name extension must be lower case, i.e. .fpt , not .FPT which was how the filename came over from Windows. 回答1: You can try this recipe on Active State. There is also a DBFReader module which you can try.

Trying to Import FoxPro DBF File to SQL Server

佐手、 提交于 2019-11-28 02:06:50
问题 As the title says, I'm trying to import a FoxPro dbf file into sql server using openrowset. At first I tried to export the DBF to an xls file and import using the Import/Export wizard. This works pretty well normally, but there is one field that sometimes holds a really long string, and this string is being truncated at 4096 characters during the export from the dbf to xls. I found an old post with instructions on how to do this using openrowset. When I try the first answer: select * from

How to import a DBF file in SQL Server

折月煮酒 提交于 2019-11-27 01:28:56
How can you import a foxpro DBF file in SQL Server? Use a linked server or use openrowset, example SELECT * into SomeTable FROM OPENROWSET('MSDASQL', 'Driver=Microsoft Visual FoxPro Driver; SourceDB=\\SomeServer\SomePath\; SourceType=DBF', 'SELECT * FROM SomeDBF') 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: select * into CERTDATA from openrowset('VFPOLEDB','C:\SomePath\CERTDATA.DBF';''; '','SELECT ACTUAL, CERTID, FROM CERTDATA') Very exciting to finally have a workable answer thanks to