You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@openoffice.apache.org by Ulrich Gebauer <ul...@web.de> on 2020/07/08 17:41:53 UTC

C# and *.odb

Dear Sirs,

as a programmer in C# I use the ACCESS-DB of MS for data storage. For
this I use the following program sequence:
" // 0050 Establish connection to the OleDb - Microsoft.Jet.OLEDB must
be included ! ! !
-----------------------------------------------------------------------------------------
string sfp = path;
string vzf = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + sfp
+"\\\MyGarerten.mdb; "+"Jet          OLEDB:Database Password=MeiGa;";
ocon.ConnectionString=vzf;
ocon.Open();                                         // Open connection
once"


A table is accessed by SQL command:
"sql = "SELECT * FROM t_beet";
  OleDbCommand cmd0 = new OleDbCommand(sql,ocon);
  cmd0.Connection = ocon;
  OleDbDataReader dr0 = cmd0.ExecuteReader();"


BUT: I am interested in your Open Office database and would like to use
it in my C# projects as well. Unfortunately I have not yet found any
access function(s).
In your renowned company there is surely a solution for C#, which I
would like to ask you for.

Many thanks in advance.

Friendly greetings

Mr. Ulrich Gebauer

PS: for instance:  database: DB-OpenOffice.odb, table: Konten



---
Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft.
https://www.avast.com/antivirus