Article ID: 193339 - Last Review: December 3, 2003 - Revision: 3.1 PRB: Unexpected Errors Using OLE DB Provider for SQL ServerThis article was previously published under Q193339 On This PageSYMPTOMS
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.
Method '~' of object '~' failed"
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.
MORE INFORMATION
If you are uncertain whether the latest Instcat.sql has been executed with
your SQL Server, you can execute the sp_server_info system stored procedure
with one parameter = 500. From ISQL run the following line in a new query:
attribute_id attribute_name attribute_value --------------------------------------------------- 500 SYS_SPROC_VERSION 7.00.481 Steps to Reproduce Behavior
REFERENCES
For additional information, please see the following article in the
Microsoft Knowledge Base:
137636
(http://support.microsoft.com/kb/137636/EN-US/
)
INF: Relationship of the ODBC Driver to INSTCAT.SQL
| Article Translations
|
Back to the top
