Im new here. Does anyone knows how to open a btrieve file in C# .net? i want to view the records of btrieve files please give me a simple sample code for this.
You don't say which version of Btrieve / PSQL you are using so I'll give a few options:
1. ODBC. You can use ODBC through the System.Data.Odbc class to work with through the Pervasive ODBC driver.
2. OLEDB. You can use OLEDB through the System.Data.OleDb class to work with through the Pervasive OLEDB provider.
3. ADO.NET. If you have a recent version (v9 or higher) of PSQL, you can use the ADO.NET provider (Pervasive.Data.SqlClient) to access files. Samples are available in the Pervasive ADO.NET SDK (
- for older versions).
4. Btrieve API. You can use the Btrieve API from C#. It's not as easy as with C++ or VB but is still possible. There is a sample under the "Code Snippets and Samples (downloads include readmes)" section at
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.