Article View: borland.public.vdbase.data.sql
Article #1227Re: Size Does Matter.
From: Yves Bentein
Date: Sun, 12 Apr 1998 00:00
Date: Sun, 12 Apr 1998 00:00
89 lines
2340 bytes
2340 bytes
Hello Geoff
Tried your examples on a 1 Million records file and got no errors as
long
as i had Create/Delete Rights on the network
Vdb creates a temporary file __QB000.... in the current working
directory
in your example you say C:\mydir1 and c:\mydir2 ( both really on the
same pc ??? )
( mydir1 was probably on the network )
I put the MYFILE.DBF on another PC and let the sqlexec run
CD c:\temp
? SQLEXEC( "SELECT * FROM 'T:\TEMP\MyFile' WHERE Employee = '0001994'",
"NewFile" )
This created the NEWFILE.DBF in my c:\temp directory and printed 0 in the
command window
Yves Bentein
Ostend, Belgium
Geoff Wass wrote in message <352C97F3.58F38EB7@ibm.net>...
>=============================================================
>Hello Everyone!
>
>
>
>Geoff Wass
>Kuala Lumpur, Malaysia
>
>
>============ cut here =================
>
>PROCEDURE Test
>
> CLEAR
>
> SET SAFETY OFF
>
> CD c:\MyDir1
> ? SQLEXEC( "SELECT * FROM 'c:\MyDir1\MyFile' WHERE Employee =
>'0001994'", "NewFile" )
> USE NewFile
> COUNT
> USE
>
> CD c:\MyDir2 && THIS WORKS!
> ? SQLEXEC( "SELECT * FROM 'c:\MyDir1\MyFile' WHERE Employee =
>'0001994'", "NewFile" )
> USE NewFile
> COUNT
> USE
>
> CD c:\MyDir1
> ? SQLEXEC( "SELECT * FROM 'c:\MyDir1\MyFile' WHERE Employee =
>'0001994'", "NewFile" )
> USE NewFile
> COUNT
> USE
>
> CD c:\MyDir2 && THIS WORKS!
> ? SQLEXEC( "SELECT * FROM 'c:\MyDir1\MyFile' WHERE Employee =
>'0001994'", "NewFile" )
> USE NewFile
> COUNT
> USE
>
> CD c:\MyDir2
> ? SQLEXEC( "SELECT * FROM 'c:\MyDir2\MyFile' WHERE Employee =
>'0001994'", "NewFile" )
> USE NewFile
> COUNT
> USE
>
> CD c:\MyDir1
>
> SET SAFETY ON
>
>RETURN
>=============================================================
>
>
Technical Details
Message-ID:
<6gqfp8$qkv$1@news3.Belgium.EU.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<352C97F3.58F38EB7@ibm.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: ff5a1,f535a19814bae7b9 X-Google-Attributes: gidff5a1,public From: "Yves Bentein" <Yves.Bentein@ping.be> Subject: Re: Size Does Matter. Date: 1998/04/12 Message-ID: <6gqfp8$qkv$1@news3.Belgium.EU.net> X-Deja-AN: 343459515 References: <352C97F3.58F38EB7@ibm.net> X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3 Organization: EUnet Belgium, Leuven, Belgium Newsgroups: borland.public.vdbase.data.sql