How can I make sure that a certain OLEDB driver is installed when I start my application? I use ADO from Delphi and would like to display a descriptive error message if the driver is missing. The error that's returned from ADO isn't always that user-friendly.
There are probably a nice little function that returns all installed drivers but I haven't found it.
MSOLEDBSQL
driver (or the olderSQLNCLI11
,SQLNCLI10
,SQLNCLI
drivers), be sure to includeDataTypeCompatibility=80
in your connection string. ADO doesn't understand some of the newerDBTYPE_xxx
constants that the modern drivers will return; and Microsoft is committed to not updating ADO - so no fixes coming. Hence by the SQL Server team addedDataTypeCompatibility
connection string option. MSDN: Using ADO with SQL Server Native Client – Ascent