PRB: Unexpected Errors Using OLE DB Provider for SQL Server (193339)
The information in this article applies to:
- Microsoft ODBC Driver for SQL Server 3.6
- Microsoft OLE DB Provider for SQL Server 7.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- Microsoft Data Access Components 2.5
- Microsoft Data Access Components 2.6
- Microsoft Data Access Components 2.7
This article was previously published under Q193339 SYMPTOMS
Visual Studio 6.0 and the Data Access 2.0 Software Development Kit (SDK)
both install a version of the SQL Server ODBC Driver (and OLE DB Provider)
that is more current than the file found in the latest SQL Server Service
Pack. Additionally, neither setup invokes the Instcat.sql script that is
needed to finish configuration of the SQL Server driver/provider. This
creates unexpected errors in various products at different times.
For example, using the Visual Basic 6.0 Data Environment for connecting to
SQL Server with the OLE DB Provider may cause an error. When you drag a
table from the data view to the design window of a command, the following
error occurs:
Query Designer encountered a MS Design Tools error:
Unspecified error.
When you click OK, you see another error:
Method '~' of object '~' failed"
Click OK again and repeat the operation. This time the operation is
successful.
CAUSE
When a new version of the SQL Server ODBC Driver is installed by a SQL
Server Service Pack (or by SQL Server), the Instcat.sql executes and helps
configure the driver for operation. The SQL Server OLE DB Provider has the
same dependency upon the execution of the Instcat.sql as the SQL Server
ODBC Driver. Visual Basic 6.0, when installing either driver or provider,
does not execute the Instcat.sql file, which then causes the preceding
errors.
The latest SQL Server Service Pack is Service Pack 4. However, the version
of the SQL Server ODBC Driver (3.60.0319) shipped with Visual Studio 6.0
and the Data Access Software Development Kit (SDK) 2.0 is newer than what
is found in SQL Server 6.5 Service Pack 4.
RESOLUTION
To work around this problem, run the Instcat.sql file from your SQL Server.
Instcat.sql is installed but not executed by Visual Studio 6.0 and the
Data Access SDK 2.0. You may have more than one Instcat.sql file on your
computer in different sub-directories. Make sure that you execute the file
dated 6/5/98 or later.
STATUS
This behavior is by design.
REFERENCES
For additional information, please see the following article in the
Microsoft Knowledge Base:
137636
INF: Relationship of the ODBC Driver to INSTCAT.SQL
Modification Type: | Major | Last Reviewed: | 12/3/2003 |
---|
Keywords: | kbDatabase kbprb KB193339 |
---|
|