visual-foxpro

SSIS Package Not Running as 32bit in SQL Server 2012

北城以北 提交于 2019-11-28 01:02:58
I have a package that I developed in VS2012 (using the SQL Data Tools component) which collects data from a DBF file using the VFPOLEDB provider, and puts it into a database on a SQL Server 2012 X64 server. The project containing the package has the DebugOption of Run64BitRuntime set to false. I have imported this package to the SSIS Package Store of a test and live server (identical setups). The VFPOLEDB provider is installed on both, and I can see in the registry of both machines that it's there for 32bit runtimes. The package runs fine on the test machine, but fails on the live machine. The

C# Read from .DBF files into a datatable

ぃ、小莉子 提交于 2019-11-27 16:46:59
问题 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

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

北战南征 提交于 2019-11-27 06:17:47
问题 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? 回答1: 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

How to cast System.Object[*] to System.Object[]

坚强是说给别人听的谎言 提交于 2019-11-27 06:14:02
问题 When I Tried to return an Array in VFP9 language COM/DLL to my .NET C# project I receive a System.Object[*] array and I can not cast to System.Object[] (Without asterisk). 回答1: Timwi's solution should work fine. You can do something a bit simpler using Linq: object[] newArray = sourceArray.Cast<object>().ToArray(); In case you need to recreate a System.Object[*] to pass it back to VFP, you can use this overload of the Array.CreateInstance method: public static Array CreateInstance( Type

Access Visual FoxPro database from Java

不想你离开。 提交于 2019-11-27 02:57:54
问题 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