64-bit ODBC Driver
Pervasive PSQL v11 now supports the ODBC interface for 64-bit applications. The 64-bit ODBC driver is installed with Pervasive PSQL Server 64-bit and Pervasive PSQL Client 64-bit.
ODBC and Data Source Names (DSNs)
On 64-bit Windows operating systems, 64-bit DSNs are distinct from 32-bit DSNs because of the Windows registry design. Windows ODBC Data Manager requires that you know the bit architecture (called “bitness”) of your application and create a DSN with that same bitness. Pervasive PSQL v11 adopts this same model. Therefore, 64-bit applications use the 64-bit ODBC driver and 32-bit applications use the 32-bit ODBC driver.
The application bitness does not have to match the bitness of the Pervasive PSQL Server product. For example, the 64-bit ODBC driver or the 32-bit ODBC driver can be used with either Pervasive PSQL Server 64-bit or Pervasive PSQL Server 32-bit.
Pervasive PSQL v11 provides three ODBC drivers, as shown in the following table.
To simplify the method for connecting to a named database, Pervasive PSQL v11 includes the following enhancements:
Frequently Asked Questions
The following table answers some frequently asked questions (FAQs) about the ODBC and DSN support in Pervasive PSQL v11.
See ODBC Connection Strings in SQL Engine Reference.
See ODBC Administrator in SQL Engine Reference.
A point of clarification is that SQL_ROWSET_SIZE is supported by both SQLGetStmtOption and SQLGetStmtAttr. If you are using the 64-bit ODBC driver and you call either SQLGetStmtOption or SQLGetStmtAttr, a 64-bit value is returned in *ValuePtr when that attribute parameter is set to SQL_ROWSET_SIZE.
DTI
The DTI functions for DSNs manage only 32-bit Engine DSNs. Therefore, the following DTI functions are deprecated along with the 32-bit Engine Interface ODBC driver:
All of these functions operate only on the 32-bit registry. This applies even if a 64-bit database engine is installed on a 64-bit operating system. The 32-bit ODBC Administrator uses the DTI functions for Engine DSNs. Therefore, the list of existing Engine DSNs and newly created Engine DSNs are only for the 32-bit registry.
See Distributed Tuning Interface Guide for an explanation of the functions that manage DSNs.
ODBC DSN Setup GUIs
The following changes apply to setting up DSNs through ODBC Administrator.
See the chapter DSNs and ODBC Administrator in SQL Engine Reference for a discussion of the new controls on the GUIs.
ODBC Header Files
The sql.h and sqltypes.h header files for ODBC contain differences for the compilation of 32-bit and 64-bit applications. Refer to the ODBC documentation on the Microsoft Web site for a discussion of 64-bit ODBC. For example, you may find the following information useful: http://msdn.microsoft.com/en-us/library/ms716287(VS.85).aspx.
Utilities Affected by ODBC Changes
For Pervasive PSQL Server and Client installations on 64-bit operating systems, Pervasive PSQL Control Center (PCC) contains separate choices for 32-bit and 64-bit ODBC Administrator. The choices are available on the Tools menu. See Additional Utilities in Pervasive PSQL User's Guide.
In addition, the option to create a DSN on the New Database dialog is now qualified for 32-bit: “Create 32-bit Engine DSN.” See New Database GUI Reference in Pervasive PSQL User's Guide. (PCC is a 32-bit application. A 64-bit version of it is not available.)
The Pervasive ODBC DSN setup GUIs have changed. See ODBC DSN Setup GUIs.