Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Status 22 after BTRV(B_GET_FIRST...)

Status
Not open for further replies.

ArnaudAbadie

Programmer
Mar 14, 2001
43
FR
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

Regards,

Arnaud
 
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.
Mirtheil
mirtheil@mirtheil.com
Custom VB and Btrieve development.
 
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;
FreeDataBuffer();
DataBuffer=(char *) &Rec;
DataLength=sizeof(AFADRES);
String str="S:\\AGIR\\AGIRV2\\FAC\\ASO\\"+Edit1->Text+".FIC";
status = CallBtrv(B_OPEN);
status = CallBtrv(B_GET_FIRST);
while (status==0)
{
ShowMessage(Rec.ctype);
...
CallBtrv(B_GET_NEXT)
}

CallBtrv method just make the BTRV and test returned status.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top