INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

C# .net open btrieve files

C# .net open btrieve files

(OP)
Hi,

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.

Thanks,

renz

RE: C# .net open btrieve files

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 (http://pervasivedb.com/support/Pages/PSQLSDK-Archives.aspx - 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 http://pervasivedb.com/support/Pages/PSQLSDK-Archives.aspx.

If you are having specific problems, post them along with the version of Btrieve / PSQL you're using.   

Mirtheil
Certified Pervasive Developer
Certified Pervasive Technician
http://www.mirtheil.com

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close