1

I have an application designed by WinDev, and it stores its data in hyperfilesSql files. What I want to do, is to extract these data using a C# application.

I tried to find a OleDb Provider for these hyperfilesSql, but with no result. Any help?

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
SidAhmed
  • 2,332
  • 2
  • 25
  • 46

1 Answers1

2

Here is how do to it ^^ :

1 : You can get the OleDb Provider for hyperfileSql files from this page.

2 : Here is a simple exemple of the code used to extract data :

string connectionString = @"Provider=PCSOFT.HFSQL;Initial Catalog=C:\MyDataFolder";
string sql = @"SELECT * FROM MyTable"; //MyTable = The .FIC file

DataTable table = new DataTable();

using (OleDbConnection connection = new OleDbConnection(connectionString))
{
       using (OleDbDataAdapter adapter = new OleDbDataAdapter(sql, connection))
       {
              adapter.Fill(table); //Fill the table with the extracted data
       }
}

gridControl1.DataSource = table; //Set the DataSource of my grid control

For other connection strings : visite the page

SidAhmed
  • 2,332
  • 2
  • 25
  • 46
  • Hi, thanks for this. Is it possible to join to other tables? I get an error when I do SELECT * From Mytable INNER JOIN OtherTable ON Mytable.SomeId = OtherTable.SomeId – Erik Dekker Apr 05 '13 at 14:50
  • @ErikDekker : Hi, frankly, I did not try it, but here is a web page that may help you : http://doc.pcsoft.fr/en-us/?2034007 – SidAhmed Apr 23 '13 at 11:36