Unexpected Error from external database driver (11265) - delphi

Trying Delphi 10.2 Tokyo with Paradox using FireDAC ODBC bring gives the error: Unexpected Error from external database driver (11265)

A solution is to try one of these:
1. You need to give the admin authentication to odbc32.dll
2. Permit the full access for the current user to odbc32.dll
3. Change the ownership of odbc32.dll for the current user/admin
4. You must install BDE (Borland Database Engine) to open the paradox DB Files. 5. go to control panel and open Data Source (odbc). After Open ODBC go to the Connection Pooling and Enable the polling for the Microsoft Access Driver(mdb) and Driver do Microsoft Paradox (.db)
6. Add the File DSN to set the paradox DB Directory
7. Create the User DSN for Driver do Microsoft Paradox
8. Change the NET DIR Path to your paradox database folder.

Related

Firedac Visual Foxpro driver 6.0 Out of memory error in Delphi

Using Delphi XE8.
Connection: TFDConnection component with next params:
DriverID=ODBC
ODBCDriver=Microsoft FoxPro VFP Driver (*.dbf)
ODBCAdvanced=SourceDB=%s;SourceType=DBF;Exclusive=No;BackgroundFetch=Yes;Collate=Machine;Null=Yes;Deleted=No
where %s is replaced for a saved path.
A TFDQuery with sql='select * from utkf' where utkf is utkf.dbf
This table (utkf) has 4 millions of records.
The driver doesn`t accept the "select top" instruction, and then I cannot put value to the FetchOptions.RecsMax property.
How can I do for open it paged, or fetching in batch?
Only must use FireDac.
VFP do not have an ODBC driver since VFP6. Use VFPOLEDB (OLEDB) driver instead. If you have to use ODBC driver then try Advantage Database Server (ALS local version is for free - if you ask my experience with ALS, it is not worth it. Installed, tested and removed long ago, still is an option for those who die for a local ODBC access to VFP data).
VFP ODBC driver recognizes and accepts "top" clause (however behavior might not be like in MS SQL server. It is more like TOP with Ties). Maybe it is your SQL that is wrong? VFP "TOP" requires an order by.
BTW, you can use the VFPOLEDB driver against any version of Foxpro tables.

Delphi : Connecting to an Excel File with UniDAC

I want to connect to an Excel file with UniDAC
I have set Provider property of UniConnection to "ODBC" and Server property to "Excel Files" but there is no option to set Excel File Address
How can I Connect to an Excel File with UniDAC ? is it possible ?
I can connect to excel file with ADO but I want to use UniDAC
I`m using Delphi XE6
Unidac, as you have discovered provides an ODBC data access driver. But as with other drivers that provide access via ODBC, you need to setup an ODBC data source name (DSN) to connect to via Control Panel->Administrative Tools->Data Sources (ODBC). And that's just the start...
A better option for Delphi is to go via ADO or... OLE.
In the Delphi IDE select Component->Install Packages, and tick either
Microsoft Office 2000 Sample Automation Server Wrapper Components
or
Microsoft Office XP Sample Automation Server Wrapper Components
to install the components you can use for accessing Excel this way.
Here is a comprehensive guide to OLE, though it's a little dated: Delphi 3 - Delphi and Microsoft Office: Automating Excel and Word and
Delphi 3 - Delphi and Microsoft Office: Automating Excel and Word - Page 2
FUniConnection1.ConnectString := Format('Provider Name=ODBC;Server="DRIVER=Microsoft Excel Driver (*.xls, *.xlsx, *.xlsm, *.xlsb); DBQ=%s"', [FileName]);

requested database driver not found on delphi 7

I have installed ZEOS on my Delphi 7 and tried connecting to a Firebird database. After I put the db path to the object inspector and tried to connect to it, Delphi always displays a message requested database driver not found. I have installed the Firebird ODBC and have set the setting on the data sources shortcut found on administrative tools but still can't connect.
How do I install the driver and where do I need to put it?
I used this connection when i tried connecting to my Firebird database
procedure TForm1.ZConnection1AfterConnect(Sender: TObject);
begin
end;
I think you might be misunderstanding what Zeos is and does. It is not a layer that lies between your application and ODBC, ADO or whatever database access layer. Instead, it is a database access layer itself that allows you to connect natively to several databases like Firebird, SQLite and others. It does not need ODBC to be installed.
You can find an introduction to Zeos architecture at their webpage in this article.
In order to connect with Firebird you will need to use a TZConnection and set following properties:
Database: For example c:/myapp/mydatabase.fdb
Hostname: localhost if the same computer.
Protocol: Should be one of the Firebird protocols. Firebird-x.x stands for protocol to access "normal" Firebird, while Firebirdd-x.x is for the embedded version.
User
Password
You can set additional properties but for a basic connection that should do it.
Regarding the error you mention, I suspect you are trying to use the embedded version. In that case, make sure the DLL mentiones by #Mark is in the same path as the app executable. If it is a regular Firebird installation make sure its path is included in the system path.
HTH

SQLite option missing from Data Explorer

I am creating an application with Delphi XE3 (Ultimate Edition) that will utilise an embedded SQLite database. I watched various videos in relation to it and I noticed that my Data Explorer did not match that of the video. At first my Data Explorer was empty, all that was there was dbExpress. I've also tried re-running the installer several times and DataSnap, DBXPool, DBXTrace, IBToGo and InterBas appeared, but it was not because of the installation re-run. Anyway, what can I do to get the SQLite option to appear for me?
This is currently what my Data Explorer looks like:
Check dbxdrivers.ini and dbxconnections.ini for dbexpress configuration. You may need to add an entry for Sqlite dbexpress configuration.

How, and where to install a database driver into an IDE? Part II

The background to this query was this question.
I have installed this driver for Firebird and placed it within the path (system32) used by the IDE. The XE Data Explorer recognises the driver, and it is possible to create a connection using the Data Explorer. Trying to view tables or any other database element through this connection results in the error described in this question. As far as I can see #Alejandro Jourdan has not obtained a solution to this problem, and I can find no solution on any of the support sites for Firebird or for Delphi XE.
The second problem comes when I create a TSQLConnection using this connection. The connection works to the extent that it generates the login prompt to the database, but when it tries to open the connection I get the error message: 'file is not a valid database' This error message is (sort of) reproducible from within the Data Explorer which gives the following error:
I/O error during "CreateFile(open)" operation for file [database path] Error while trying to open file. Access is denied..
The database is valid and can be opened from the Firebird command line utility, and from a Data Base browser.
Environment:
Machine: Lenovo Thinkpad W510
OS: Windows 7 Ultimate 64bit
Delphi: Embarcadero® RAD Studio XE Professional Version 15.0.3953.35171
Database: W1-V2.5.0.26074 Firebird 2.5 (64 bit)
Also Installed:
Embarcado Borland® Developer Studio 2006 Enterprise Version 10.0.2288.42451 Update 2 (XP Version)
Borland Delphi Version 7 (XP Version)
EDIT:
See my own answer below. This edit has removed extensive detail that proves to be unnecessary in the light of that answer, while retaining the core of the question, and the links contained within it.
The first thing that sticks out to me is that you're using the 64-bit version of Firebird, and that you mentioned it comes with both a 32- and 64-bit driver. Are the DLLs named the same? If so, I suspect that the IDE/OS are trying to load the 64-bit version of the DLL in a 32-bit application, which isn't possible (32-bit apps can't load 64-bit drivers, and vice versa).
Try one of two things:
First, if the DLLs have the same name, rename the 64-bit version temporarily, and restart the IDE. Then try again.
Try installing the 32-bit version of Firebird, even though you're running a 64-bit OS.
The basic question I had (in part I) was:
I want to install a Firebird database
driver, and to have it available
within the Delphi XE IDE. I want the
database driver to be usable on the
same basis as other, supplied database
drivers (eg Interbase, SQL - from
within the Data Explorer in the IDE).
I have obtained an appropriate driver.
After considerable investigation I have found that it is not possible to achieve the integration into the Delphi IDE that I was trying to achieve. This is because the Data Explorer is a .NET application and the available DBExpress drivers (here and here) are just not compatible with .NET. I understand that I can use the drivers by setting up the parameters appropriately, in both the IDE and by programming in the application I am developing.
I have drafted this answer to assist others to avoid this particular blind alley. I am also editing the part II question in order to remove a lot of the detail, that proves to be unnecessary in the light of this answer.

Resources