Page 1 of 1

ODBCUniProvider Database type

Posted: Mon 18 Jan 2016 09:00
by Nono23
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

Re: ODBCUniProvider Database type

Posted: Tue 19 Jan 2016 10:18
by MaximG
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.