visual-foxpro

NHibernate configuration to connect to Visual FoxPro 8.0?

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-30 18:48:10
问题 Curious if anyone out there has ever connected NHibernate to Visual Foxpro 8.0? I'm looking to hook into a legacy data store, and would prefer to use NHibernate vs. having to hand-code all of the ADO.Net. If anyone has an example of the configuration XML file for a FoxPro 8 connection that would be great! 回答1: And figured out the solution: First, I needed to pick up the Visual FoxPro drivers (these are 9.0 but allowed me to work in 8.0). Next, I had to set up my NHibernate config as follows.

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

Getting the error “The 'VFPOLEDB.1' provider is not registered on the local machine” even after installing and registering the provider

僤鯓⒐⒋嵵緔 提交于 2019-11-30 13:34:43
Alright, so I've got a Windows service that has a FileSystemWatcher that watches an output folder for some Visual FoxPro database files. And it leverages the VFPOLEDB.1 provider to read those files. I cannot go away from this provider because it's being used in production. However, I've never had to support this application before so that's why my development box isn't setup for it. Here is my environment: Windows 7 x64 Visual Studio 2005 .NET 2.0 Windows service so, when I first started getting the error I figured I just didn't have the provider at all, and I was right. So, I downloaded and

Php, odbc & vfp

感情迁移 提交于 2019-11-30 07:41:09
问题 I'm trying to connect a dbf database with php. I've tried several different ways, with no luck. PHP: 5.3.8 File: C:\xampp\htdocs\work\vcabdoc.dbf 1rst way: created data source dbvfp, driver C:\Windows\system32\vfpodbc.dll used $odbc = odbc_connect ('dbvfp', '', '') or die('Could Not Connect to ODBC Database!'); Warning: odbc_connect() [function.odbc-connect]: SQL error: [Microsoft][ODBC Visual FoxPro Driver]File c:\xampp\htdocs\work\vcabdoc.dbf is not a database., SQL state S1000 in

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

Php, odbc & vfp

被刻印的时光 ゝ 提交于 2019-11-29 05:19:21
I'm trying to connect a dbf database with php. I've tried several different ways, with no luck. PHP: 5.3.8 File: C:\xampp\htdocs\work\vcabdoc.dbf 1rst way: created data source dbvfp, driver C:\Windows\system32\vfpodbc.dll used $odbc = odbc_connect ('dbvfp', '', '') or die('Could Not Connect to ODBC Database!'); Warning: odbc_connect() [function.odbc-connect]: SQL error: [Microsoft][ODBC Visual FoxPro Driver]File c:\xampp\htdocs\work\vcabdoc.dbf is not a database., SQL state S1000 in SQLConnect in C:\xampp\htdocs\WORK\odbc.php on line 5 2nd way: include('\xampp\php\PEAR\adodb\adodb.inc.php');

C# Read from .DBF files into a datatable

喜欢而已 提交于 2019-11-29 02:27:09
I need to connect to a .dbf file in visual Studio using C# and populate a data table. Any ideas? I can currently view the tables in Visual Fox Pro 9.0 Code I have tried and failed, keep getting External table is not in the expected format. private OleDbConnection conn; private OleDbCommand cmd; private OleDbDataReader dr; private string sqlStr = ""; private DataSet myDataSet; private OleDbDataAdapter myAdapter; void test2() { conn = new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\Users\\PC1\Documents\\Visual FoxPro Projects\\;Extended Properties=DBASE IV;"); conn.Open();

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.

How do I read a Foxpro 8.0 database from c#?

扶醉桌前 提交于 2019-11-28 11:32:41
I need to import tables from foxpro 8.0 to sql server. How do I read the tables & schema from a foxpro directory/files in C# so I can create the tables in SQL Server and copy the data over? You can accomplish this through the use of the GetSchema method on the OleDb.Connection class. OleDbConnection connection = new OleDbConnection( "Provider=VFPOLEDB.1;Data Source=.\\Northwind\\Northwind.dbc;" ); connection.Open(); DataTable tables = connection.GetSchema( System.Data.OleDb.OleDbMetaDataCollectionNames.Tables ); foreach (System.Data.DataRow rowTables in tables.Rows) { Console.Out.WriteLine

Access Visual FoxPro database from Java

£可爱£侵袭症+ 提交于 2019-11-28 09:30:14
I've been trying to access a Visual Fox Pro database from Java for a week now. I'm getting desperate because my project is in a very tied budget and timeframe. (As any other project, I guess, hahaha) I have a .dbf , a .cdx and a .fpt files. I need to be able to look for a record, extract data, and update data. I don't have a VFP licence. I hope someone has some pointers or a working example that I can use. If the only way is buying a driver I'll be willing to consider it based on suggestions received. This is a short description of what I have tried. I found this xBaseJ: java objects to read