BUG: Cannot Have a Pathname > 29 Char for SYSTEM.MDA (105795)



The information in this article applies to:

  • Microsoft Open Database Connectivity 1.0

This article was previously published under Q105795
BUG# ODBCDBASE: 1852 (1.01.1928)

SYMPTOMS

The ODBC Access driver does not recognize a SYSTEM.MDA file for which the path is longer than 29 characters.

The ODBC Access driver can be used to connect to secure Access databases. To do this, the user should specify a SYSTEM.MDA file associated with the Access database--by selecting the Options button in the Access Datasource Setup dialog box, and specifying a complete path for the SYSTEM.MDA file.

If this path is longer than 29 characters, the driver gives the following error during SQLConnect or SQLDriverConnect:
szSqlState = '08004', *pfNativeError = -1023
szErrorMsg="[Microsoft][ODBC Single-Tier Driver][ODBC File
Library]Invalid path
For example, the following path will work for SYSTEM.MDA (it is 29 characters long):
   c:\temp\snuffy1\ok\system.mda
				
while the following does not work (it is 30 characters long):
   c:\temp\snuffy1\bad\system.mda
				

WORKAROUND

Move the SYSTEM.MDA file to a different directory so that the path is less than 29 characters.

STATUS

Microsoft has confirmed this to be a problem in the Access Driver version 1.01.1928. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

Modification Type:MajorLast Reviewed:7/27/2001
Keywords:kbBug KB105795