🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.vdbase.data.sql
Article #789

Re: Multiple Alias '

#789
From: Christopher F. Neumann
Date: Mon, 20 Jul 1998 00:00
50 lines
2227 bytes
Romain Strieff [TeamB] wrote in message ...
>In article <6ol4tl$8lm9@forums.borland.com>, CNeumann@Physix.com
>grudgingly admits...
>> When it is first selected, I do a LIST STAT and I see 3 seperate selects.
>> When I do a USE IN MYTABLE, it removes 1 and keeps the other 2.  When I
run
>> the routine again, I have 4 left after it is done.  I use VdB tables & MS
>> SQL tables.  I use the following scenario:
>>
>> **using VdB tables
>> set database to MYSQLTABLES
>> **using SQL tables
>> set database to
>> **using VdB tables
>> (etc.)
>>
>> If I just use the SQL routine, there is no problem.  If I just use the
VdB
>> routine, there is no problem.  When I use the above scenario to get the
use
>> of ALL of my tables (VdB & SQL), I have the problem.
>>
>Which problem?


When using BOTH, VdB & SQL tables at the same time, the problem occurs.

>If you:
>for n=1 to 50
>  use mtable in select()
>next
>you'll have the same table opened 50 times, what else did you expect?


I would expect 50 select's of MTABLE!  If I use the code that only accesses
VdB tables, the problem does NOT occur.  If I use the code that only
accesses the SQL tables, the problem does NOT occur.  If I instanciate the
VdB tables and later in the program select an SQL table, THE PROBLEM OCCURS!

>Or do I miss something?


DOH!

>If you you want to start afresh, just CLOSE DATABASES before opening any
tables.

All VdB tables are instanciated on initial execution.  SQL tables are
opened/closed as needed, primarily due to a VdB limitation of ONLY 1 SQL
table open at a time, whether or not opened as an alias.
Technical Details
Message-ID: <6ovn3u$hmr8@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <6oj6el$71s5@forums.borland.com> <35ae4a1e.1154886@forums.borland.com> <6ol4tl$8lm9@forums.borland.com> <MPG.101d0516c55331cd98afdb@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: ff5a1,c34fa95eb77b2a9a
X-Google-Attributes: gidff5a1,public
From: "Christopher F. Neumann" <CNeumann@Physix.com>
Subject: Re: Multiple Alias '
Date: 1998/07/20
Message-ID: <6ovn3u$hmr8@forums.borland.com>
X-Deja-AN: 373185026
References: <6oj6el$71s5@forums.borland.com> <35ae4a1e.1154886@forums.borland.com> <6ol4tl$8lm9@forums.borland.com> <MPG.101d0516c55331cd98afdb@forums.borland.com>
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Organization: Physix, Inc.
Newsgroups: borland.public.vdbase.data.sql