MS SQL: the Microsoft SQL driver or ODBC, and which SQL Server driver version to name in the owner string

Applies to: Clarion 6.1 (build 9029, legacy templates) against SQL Server 2008 R2 with the SQL Native Client 2005 installed, as reported in 2012. The C7 and C8 remarks come from one poster's experience.

Problem

All tables used the "Microsoft SQL" driver (the MS SQL Accelerator). The trace showed the older [ODBC SQL Server Driver] in use, not [SQL Native Client], although the 2005 Native Client was installed. Adding Driver=SQL Native Client to the end of the owner string made the trace show the Native Client. The poster asked whether to do that and what the accelerator does that plain ODBC does not.

Solution

  1. Name the driver of the specific back end rather than rely on the default. Two posters gave this advice.
  2. One poster's ranking for SQL Server 2008 R2: do not use the old "SQL Server" driver, do not use "Native Client" (the 2005 one), use "Native Client 10".
  3. The same poster reported from C8 experience: for SQL 2005 use the Native Client; for 2008 use Native Client 10, because the old driver reads a TIME as STRING(8); for 2012 do not use version 11 on tables with NTEXT (IMAGETEXT_ON) columns, because Clarion does not know that driver and blob extraction can GPF.
  4. The accelerator: a poster saw nothing in it that justified avoiding the ODBC driver, which gives direct API calls. Another said it works as a layer between some Clarion calls and the database calls and may serve the dictionary tools.

Caveats

  • Both posters called their remarks personal experience. No speed figures were given; the speed gain was only something the original poster had read about.
  • A poster noted the 2005 driver will not do table-type parameters or stored procedures that return multiple result sets.
  • A reported date-reading difference (MS SQL driver read dates correctly, ODBC saw STRING(8)) was said to be changed for build 9059 ODBC.

Today (2026)

Not re-tested. The Native Client versions named are long retired, so today the choice is a current Microsoft ODBC driver; the thread's advice to name the matching driver for your server is the part likely to carry over.

Sources: Graham D. (Oct 2012, the question), JP G., Dennis E. (Oct 2012) in softvelocity.clarion.databasedrivers.