Contact US

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.

Students Click Here

Status 22 after BTRV(B_GET_FIRST...)

Status 22 after BTRV(B_GET_FIRST...)

Status 22 after BTRV(B_GET_FIRST...)

Hi all,

I have a strange error. I access a Pervasive DataBase on a Windows NT Server SP6 with Pervasive SQLi2000 installed.
And it works well. When I'm trying to access the same database on an old Novell 3.12 Server: it doesn't work;
I only have a STATUS 22.
Is there something that I've missed in my program ? Is there a difference between NT and Netware access ?

Let me know



RE: Status 22 after BTRV(B_GET_FIRST...)

There is no difference between the NetWare and NT versions of Pervasive.SQL 7.0.  The same code should work to both engines.  Does the Function Executor return the status 22 on the NetWare server?  Is the data file on the NetWare server a direct copy of the NT data file or are they just the same structure?  If they aren't a direct copy of each other, copy the NT version to the NetWare server and try it again.

Custom VB and Btrieve development.

RE: Status 22 after BTRV(B_GET_FIRST...)

Hi Mirtheil,

That's exactally what I did.
To make an idea, just take a look to a part of my code

  KeyNumber = 0;
  isEOF = false;
  DataBuffer=(char *) &Rec;
  String str="S:\\AGIR\\AGIRV2\\FAC\\ASO\\"+Edit1->Text+".FIC";
  status = CallBtrv(B_OPEN);
  status = CallBtrv(B_GET_FIRST);
  while (status==0)

CallBtrv method just make the BTRV and test returned status.

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! Already a Member? Login

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