DBT memos with ADSDBE

Xbase++ 2.0 Build 554 or later
Post Reply
Message
Author
User avatar
rdonnay
Site Admin
Posts: 4774
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

DBT memos with ADSDBE

#1 Post by rdonnay »

The Alaska documentation states that ADSDBE is compatible with DBT memo files, however there are no examples of how to enable this feature.

Has anyone successfully used ADSDBE with DBT memos and CDX Indexes?
The eXpress train is coming - and it has more cars.

User avatar
SlavkoDam
Posts: 111
Joined: Wed Apr 27, 2022 10:12 am
Location: Negotin, Serbia
Contact:

Re: DBT memos with ADSDBE

#2 Post by SlavkoDam »

This is from Alaska documentation how it works and how to change it.
In its default configuration, the ADSDBE uses Clipper compatible file formats for memo (DBT) and index (NTX) files, compatible record locking schemes and checks file access rights defined for a user on the file server. These default settings can be overridden using DbeInfo().

ADSDBE_TBL_MODE

There are two constants defined in ADSDBE.CH that allow for selecting the file formats used by the ADS:

A) DbeInfo( COMPONENT_DATA , ADSDBE_TBL_MODE, ADSDBE_NTX )
DbeInfo( COMPONENT_ORDER, ADSDBE_TBL_MODE, ADSDBE_NTX )

B) DbeInfo( COMPONENT_DATA , ADSDBE_TBL_MODE, ADSDBE_CDX )
DbeInfo( COMPONENT_ORDER, ADSDBE_TBL_MODE, ADSDBE_CDX )

C) DbeInfo( COMPONENT_DATA , ADSDBE_TBL_MODE, ADSDBE_ADT )
DbeInfo( COMPONENT_ORDER, ADSDBE_TBL_MODE, ADSDBE_ADT )

The first (variant A) is the default setting and selects the Clipper compatible file formats for index (NTX) and memo (DBT) files. This complies with the file specifications for the Xbase++ Database Engines DBFDBE and NTXDBE.

The second (variant B) selects FoxPro compatible file formats. The ADS uses CDX index files and FPT memo files in this case. They are compliant with the file specifications for the CDXDBE and FOXDBE of Xbase++.

The third (variant C) selects Advantage properitary file formats. The ADS uses ADI index files and ADM memo files in this case. For more information please be referred to the Advantage Database Server documentation.
Best regards,

Slavoljub Damnjanovic
SD-SoftDesign, Alaska Software Technology Partner
https://www.sd-softdesign.com
https://www.sd-softdesign.rs

User avatar
rdonnay
Site Admin
Posts: 4774
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: DBT memos with ADSDBE

#3 Post by rdonnay »

I read all of that, but dbeInfo() doesn't allow using that because it is Read Only.

#define ADSDBE_MEMOFILE_EXT (DBE_USER+1) // RO
The eXpress train is coming - and it has more cars.

User avatar
SlavkoDam
Posts: 111
Joined: Wed Apr 27, 2022 10:12 am
Location: Negotin, Serbia
Contact:

Re: DBT memos with ADSDBE

#4 Post by SlavkoDam »

Yes, ADSDBE_MEMOFILE_EXT is RO. But, it has to be used ADSDBE_TBL_MODE which is RW.
Best regards,

Slavoljub Damnjanovic
SD-SoftDesign, Alaska Software Technology Partner
https://www.sd-softdesign.com
https://www.sd-softdesign.rs

User avatar
rdonnay
Site Admin
Posts: 4774
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: DBT memos with ADSDBE

#5 Post by rdonnay »

Yes, ADSDBE_MEMOFILE_EXT is RO. But, it has to be used ADSDBE_TBL_MODE which is RW.
ADS_DBE_TABLEMODE can only be NTX, CDX or ADT.
The eXpress train is coming - and it has more cars.

User avatar
SlavkoDam
Posts: 111
Joined: Wed Apr 27, 2022 10:12 am
Location: Negotin, Serbia
Contact:

Re: DBT memos with ADSDBE

#6 Post by SlavkoDam »

What exactly do you want to specify and achieve?
Best regards,

Slavoljub Damnjanovic
SD-SoftDesign, Alaska Software Technology Partner
https://www.sd-softdesign.com
https://www.sd-softdesign.rs

User avatar
rdonnay
Site Admin
Posts: 4774
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: DBT memos with ADSDBE

#7 Post by rdonnay »

I have a customer with an application that uses DBFCDX files with DBT memos.

I want to use ADSDBE so can can do SQL queries against their data.

I have been doing this for years with FOXCDX and FPT memos.

The ADSDBE documentation implies that this should be possible but there is no example on how to configure the ADSDBE and the documentation is vague.

I sent a support request to Alaska Software.
The eXpress train is coming - and it has more cars.

Wolfgang Ciriack
Posts: 481
Joined: Wed Jan 27, 2010 10:25 pm
Location: Berlin Germany

Re: DBT memos with ADSDBE

#8 Post by Wolfgang Ciriack »

Hello Roger,
CDX and DBT does not work with ADS, that was the reason i changed to FOXCDX and FPT some years ago.
_______________________
Best Regards
Wolfgang

Post Reply