sqlite version

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
sandy771
Posts: 194
Joined: Tue 22 May 2007 13:57

sqlite version

Post by sandy771 » Mon 19 Nov 2012 19:15

Can unidac return the version of the sqlite dll it is connected to?

or for that matter can it return the version of any driver it is connected to?

Oma Hans
Posts: 5
Joined: Mon 15 Oct 2012 13:30

Re: sqlite version

Post by Oma Hans » Tue 20 Nov 2012 08:56

For SQLite, simply execute the following query while connected to a data base:

Code: Select all

SELECT sqlite_version();
For PostgreSQL it is

Code: Select all

SELECT version();
Don't know about other engines, but it should be similar.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: sqlite version

Post by AlexP » Tue 20 Nov 2012 09:35

Hello,

A version of the server in any provider (SQLite library) can be get using the TUniConnection.ServerVersion property. If a DB client is used for connection, you can find out the client version using the TUniConnection.ClientVersion property.

Post Reply