PRB: "Optional feature not implemented" or "#name" in SQL Server 7.0ID: Q222104
|
When you try to update SQL Server 7.0 tables that contain Unicode datatypes from Access 97 or Access 95 using the 3.60.0319 (or earlier) version of the ODBC SQLServer driver, the following error message appears:
[Microsoft][ODBC SQLServer Driver]"Optional feature not implemented"
Access tries to bind the parameter for the Unicode column, asking the driver to convert from SQL_CHAR/SQL_VARCHAR to SQL_WCHAR/SQL_WVARCHAR. This functionality is not available in the 3.60.xxxx or the previous versions of the SQL Server ODBC Driver.
Use SQL Server ODBC Driver version 3.70.0623 or later when you use Access 97 or Access 95 to connect to SQL Server 7.0.
This behavior is by design.
Access 97 and Access 95 make calls to the catalog API in ODBC, such as SQLTables, SQLColumns, and so forth. These APIs return the datatypes as SQL_WVARCHAR/SQL_WCHAR, and so forth, depending on the actual Unicode datatype in the SQLServer datatypes. Then Access calls SQLBindParameter, requesting conversion to Unicode data in the driver. This feature is not implemented in the 3.60.xxxx version of the SQL Server ODBC Driver.
Avoid using the ntext datatype, even when using the 3.70.xxxx version of the driver, because Access does not recognize this datatype and can cause the #name or #error error.
create table unicode_test(
col1 int PRIMARY KEY,
col2 nvarchar(10),
col3 nchar(10))
insert into unicode_test values (1,N'test',N'test')
insert into unicode_test values (2,N'test',N'test')
Additional query words: #name, #error, Unicode
Keywords : kbAccess95 kbAccess97 kbDatabase kbODBC300 kbODBC350 kbODBC360 kbSQLServ700
Version : WINDOWS:3.0,3.5,3.6; winnt:7.0
Platform : WINDOWS winnt
Issue type : kbprb
Last Reviewed: April 6, 1999