ADS 5132 Errors / Struggles with Internet and Local Server

Post Reply
User avatar
arpipeline
Posts: 36
Joined: Thu Oct 26, 2006 5:23 pm
Location: United States

ADS 5132 Errors / Struggles with Internet and Local Server

Post by arpipeline »

I am using Advantage Database Server version 8.1

I have the AIS portion of my system running like a charm. However, I want to switch to ALS and create temp tables here and there in my code. I cannot seem to figure out how to use *both* ALS and AIS in the same application.

Can someone help me out? My specific question is how to COPY STRUCTURE, USE, etc. using ALS when I have an active .ADD
connected via AIS.

TIA

Andy
Ariel
Posts: 309
Joined: Wed Nov 29, 2006 1:51 pm
Location: Rosario - Argentina

Re: ADS 5132 Errors / Struggles with Internet and Local Server

Post by Ariel »

TIA,

See:

AdsCopyTableStructure()

Regards
User avatar
fraxzi
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines
Contact:

Re: ADS 5132 Errors / Struggles with Internet and Local Server

Post by fraxzi »

arpipeline wrote:I am using Advantage Database Server version 8.1

I have the AIS portion of my system running like a charm. However, I want to switch to ALS and create temp tables here and there in my code. I cannot seem to figure out how to use *both* ALS and AIS in the same application.

Can someone help me out? My specific question is how to COPY STRUCTURE, USE, etc. using ALS when I have an active .ADD
connected via AIS.

TIA

Andy

Mr. Andy,

I have a similar application which uses both ADS and ALS at the same time.

Code: Select all

 ...
 hADS := 0
 hALS := 0

 lServerOK := ADSConnect60(  <.add location>,4,'adssys',,,@hADS)
 ...
 lLocalOK  := ADSConnect60( <.add location>,1, 'adssys',,,@hALS)
 ...

 
Use this to switch your connection

Code: Select all

...

AdsConnection( hADS )    //switch to ADS handle
...

AdsConnection( hALS )    //switch to ALS handle
...

 
All other ADS operation are standard.


Regards,
-Frances
Kind Regards,
Frances

Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
Post Reply