Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Error 5096 when opening a DBF previously created with DBFNTX

2 posts in Xbase++ Last posting was on 2007-11-06 16:23:26.0Z
Paulo Pinheiro Posted on 2007-11-06 16:13:57.0Z
Reply-To: "Paulo Pinheiro" <paulo.pinheiro@modulac.pt>
From: "Paulo Pinheiro" <paulo.pinheiro@modulac.pt>
Newsgroups: advantage.Xbase++
Subject: Error 5096 when opening a DBF previously created with DBFNTX
Date: Tue, 6 Nov 2007 16:13:57 -0000
Lines: 31
Organization: M?dula C
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 85.139.240.1
Message-ID: <47309119@solutions.advantagedatabase.com>
X-Trace: 6 Nov 2007 09:06:49 -0700, 85.139.240.1
Path: solutions.advantagedatabase.com!solutions.advantagedatabase.com!85.139.240.1
Xref: solutions.advantagedatabase.com Advantage.Xbase++:849
Article PK: 1140716

Hello All,

a) Before installing ADS i created DBF using:

DbeSetDefault( "DBFNTX" )
SET CHARSET TO ANSI
DbeInfo( COMPONENT_DATA, DBFDBE_ANSI, .T. )
(...)
aStruct := { { "TEXTO" , "C", 256, 0 } }
FCreate( "X.DBF", aStruct )

==> With this, XBase++ writes the first byte of the DBF as 07h instead of
03h.

b) After installing ADS and when tried to open the DBF gives the error 5096.

DbeSetDefault( "ADSDBE" )
SET CHARSET TO ANSI
(...)
USE "X.DBF"

==> Gives error 5096 because it "thinks" is encrypted.

Note: This is an example, of course, because there a lot more tables and
also there is the possibility to "jump" between ADS and no ADS

Any help?
Best Regards,
Paulo Pinheiro


Paulo Pinheiro Posted on 2007-11-06 16:23:26.0Z
Reply-To: "Paulo Pinheiro" <paulo.pinheiro@modulac.pt>
From: "Paulo Pinheiro" <paulo.pinheiro@modulac.pt>
Newsgroups: advantage.Xbase++
References: <47309119@solutions.advantagedatabase.com>
Subject: Re: Error 5096 when opening a DBF previously created with DBFNTX
Date: Tue, 6 Nov 2007 16:23:26 -0000
Lines: 4
Organization: M?dula C
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 85.139.240.1
Message-ID: <47309352@solutions.advantagedatabase.com>
X-Trace: 6 Nov 2007 09:16:18 -0700, 85.139.240.1
Path: solutions.advantagedatabase.com!solutions.advantagedatabase.com!85.139.240.1
Xref: solutions.advantagedatabase.com Advantage.Xbase++:850
Article PK: 1140715

The error is not on openening but on DbAppend()