Re: DBF WITH EXTENSION OTHER THAN .DBF ( I.E. DAT )



I use TADOQuery for open table1.dat without problem, I put an example at
the botom,

my problem is How I can to make for the tables in the SELECT use the index
files table1.ind and
table2.ind ?

for example

SELECT * FROM table1.dat, table2.dat
WHERE table1.field1 = table2.field2

If I not use the indexed file the query get long time

Thanks
---------------------------
FOR DBF WITH EXTENSION OTHER THAN .DBF ( I.E. DAT )
I set 2 properties
1- ConnectionString=
Provider=MSDASQL.1;Persist Security Info=False;Data Source=Visual FoxPro
Tables;Extended Properties="DSN=Visual FoxPro Tables;UID=;
(here are the directory) !!!!!!!!!!!!!!!!
SourceDB=e:\42;
SourceType=DBF;Exclusive=No;BackgroundFetch=Yes;Collate=Machine;Null=No;Dele
ted=No;"

2- SQL= SELECT * FROM table1.dat
---------------------------

"michael" <mgoh_id@xxxxxxxxxxx> escribió en el mensaje
news:430c6581@xxxxxxxxxxxxxxxxxxxxxxxxx
> Dear All,
>
> I have few dbase files from older application. They are using .dat as the
> extension.
> If I rename the file to dbf and using odbc or jet 4.0 ( ole ) I managed to
> open connection and read table as it is.
> The problem is to make it compatible with older application.
>
> I read in MSDN about Jet 4.0, It is saying that with the previous version
of
> Jet 4.0, it is allowed to read dbase file with extension other than .dbf
> Due to security measure, it has been disallowed
>
> The Problem is :
> I have to read .dat as it is w/o renaming the file due to it might be used
> when reading the file.
> Copying before renaming might be my last effort, as I prefer to be real
time
> rather than copying the file.
>
> Is there some way to get around this problem ?
>
> Thanks
>
> Regards
>
> Michael
>
>


.



Relevant Pages

  • Re: Importing csv files must have a csv extension?
    ... > I don't know of any limitation that prevents you from using a text ... > with an extension other than csv, but I can't say without a doubt that ... > Note you can set the extensions in the connection string. ... > to have the support files for the Jet provider, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Connection to dBase file but not using .dbf extentions
    ... rest of the connection string to have Jet look for a dBase connection using ... I don't believe the driver will recognize the file with a different extension. ... works with Jet OLEDB and the ISAM driver. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: copy SortedList
    ... I have added an extension ... Is there another method of copying a SortedList without having to pass ... wondering anything similar in C# (ive had a look on google but didnt ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: [PHP] PHP5, Windoze, Extensions
    ... the way i am using phpinfo() for this info. ... If not, PHP doesn't read your php.ini, and reports the default values ... stop copying them all over the place. ... Get *one* extension to work and put all the extensions in that place ...
    (php.general)
  • Re: reading text files
    ... extenstions that the Jet Engine will treat as a text file. ... a .log extension and I'm getting a read-only error. ...
    (microsoft.public.dotnet.framework.adonet)