ODBCUniProvider Database type

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Nono23
Posts: 1
Joined: Mon 14 Dec 2015 08:59

ODBCUniProvider Database type

Post by Nono23 » Mon 18 Jan 2016 09:00

Dear all,

We use UniDac to connect our application to different kind of databases (depending on our customer system) We can use SQL Server, FIrebird or other kind like Access, DB2, ...

For Access or DB2, we use the ODBC Provider.

Is there a way, by using only the UniConnection linked with the ODBC Provider, to know the kind of database we use ? (For example, If I link a TUniConnection to an ODBC Driver, I'll need to know if this connection is Access, DB2, or any other kind of ODBC) Or Do I have to read the ODBC properties on the registry keys?

Thanks a lot for you answer.

Regards

Noémie

MaximG
Devart Team
Posts: 1822
Joined: Mon 06 Jul 2015 11:34

Re: ODBCUniProvider Database type

Post by MaximG » Tue 19 Jan 2016 10:18

To resolve this task, you can use the UniConnection.ServerVersionFull property. After establishing connection, the ServerVersionFull property will contain a string with information about the used driver type and version.

Post Reply