I have 2 ledgers on the same server in different directories
One services the NZ market and the other services AUSTRALIA.
The file names are common to both directories.
We must move stock between the 2 ledgers.
The Clipper 5.2c manual says 'Fine - just make sure that
unique ALIASes are used for databases with the same names.
So I did what it said... then compiled and ran it...
DO WHILE .T.
folder1="C:\NZ"
folder2="C:\OZY"
SELECT 1
USE &folder1\STOCK ALIAS NZstock SHARED
IF NETERR()
LOOP
ENDIF
SELECT 2
USE &folder2\STOCK ALIAS OZYstock SHARED && line 20
IF NETERR()
LOOP
ENDIF
EXIT
ENDDO
and I got a run-time error 'ALIAS already in use - STOCK'
(error DBCMD/1011) at commented line 20 (see above)
I know I can OPEN and CLOSE the databases as required
but this does not give any security if one or other
of the ledgers decides to run a function that locks
the files and prevents access... so that is not a viable
option.
This is outrageous! lol.
How do we get around this problem please?
Jim
One services the NZ market and the other services AUSTRALIA.
The file names are common to both directories.
We must move stock between the 2 ledgers.
The Clipper 5.2c manual says 'Fine - just make sure that
unique ALIASes are used for databases with the same names.
So I did what it said... then compiled and ran it...
DO WHILE .T.
folder1="C:\NZ"
folder2="C:\OZY"
SELECT 1
USE &folder1\STOCK ALIAS NZstock SHARED
IF NETERR()
LOOP
ENDIF
SELECT 2
USE &folder2\STOCK ALIAS OZYstock SHARED && line 20
IF NETERR()
LOOP
ENDIF
EXIT
ENDDO
and I got a run-time error 'ALIAS already in use - STOCK'
(error DBCMD/1011) at commented line 20 (see above)
I know I can OPEN and CLOSE the databases as required
but this does not give any security if one or other
of the ledgers decides to run a function that locks
the files and prevents access... so that is not a viable
option.
This is outrageous! lol.
How do we get around this problem please?
Jim