How to Connect.
-
Friday, June 08, 2007 5:24 AM
Hai All Gurus,
I am working with Progess OpenEdge DataBase.My problem is that i want to know how to connect with the database using ODBC connection from C#.NET. it is very help full to me if any one provide step-by-step solution for this problem. Thanks in advance.
Rgds,
All Replies
-
Sunday, June 10, 2007 3:56 AM
http://www.connectionstrings.com is the resource to get the connectionstrin you need.
http://www.connectionstrings.com/?carrier=progressThis KB shows how to use it
http://support.microsoft.com/kb/310988 -
Monday, June 04, 2012 5:47 AM
Hi Shaji,
Are you able to connect the Progress OpenEdge Database from C#.Net?
Thanks,
KrishnaKrishnasandeep
-
Tuesday, June 12, 2012 11:38 AM
Yes. OpenEdge expose ODBC driver by which you can connect from C#.
A safer way is to create DSN and give the DSN name as reference to your ado.net ODBC connection object.
Step One
To configure a DSN, you can follow step by step document mentioned by Progress here,
Step Two
In C#, you can open a ODBC connection with mentioning Connection string referred to the DSN name created in Step One.
Refer: http://msdn.microsoft.com/en-us/library/aa984313(v=vs.71).aspx
Or
System.Data.Odbc.OdbcConnection conn = new System.Data.Odbc.OdbcConnection (); // TODO: Modify the connection string and include any // additional required properties for your database. conn.ConnectionString = "DSN=YourDsnNameCreatedbyStepOne; Uid=myUsername;Pwd=;";
Then you can use normal Ado.net ODBCAdopter,Dataset,ODBCCommand to do any CRUD operation.
Refer: http://msdn.microsoft.com/en-us/library/system.data.odbc.odbcdataadapter(v=vs.71).aspx
You may also like the the complete document Communications between OpenEdge and dotNET.doc by progress.
Recently I learned that, OpenEdge has its own API for .Net to connect in native way. This will give batter performance and many more features which ODBC cannot. You can refer the API documentation from here,
<cite>http://documentation.progress.com/output/OpenEdge102b/pdfs/dvnet/dvnet.pdf</cite>
Anyway these API are not supported by micrsoftforum as it is developed by Progress, So for any query on this API, you can always use Openedge forum as below.
http://<cite>communities.progress.com/pcom/community/psdn/openedge/architect</cite>
Lingaraj Mishra
- Proposed As Answer by sanny521 Tuesday, June 19, 2012 9:24 AM
-
Tuesday, June 19, 2012 9:24 AM
Thanks Mishra.
I will try and let you know..
Krishnasandeep

