ACC: Unexpected Stored Procedures Found in SysObjects TableLast reviewed: May 20, 1997Article ID: Q96898 |
The information in this article applies to:
SUMMARYAdvanced: Requires expert coding, interoperability, and multiuser skills. Unexpected stored procedures with the general format ODBC#<login ID>nnnnnnn are found when you query the SysObjects table in SQL Server. For example, if you issue the following query from SQL Administrator Facility (SAF)
SELECT * FROM SysObjects WHERE Name LIKE "ODBC%"you see stored procedures such as:
ODBC#sa24518 ODBC#sa2334 ODBC#sa17854This article describes what these stored procedures are and how to delete them.
MORE INFORMATIONWhen Microsoft Access runs a parameter query, it calls the ODBC function SQLPrepare(), which creates and compiles stored procedures. These stored procedures pass the proper parameter arguments to ensure proper execution of the query. These stored procedures are normally deleted once the ODBC connection is closed. However, if any action, including the following, causes the ODBC connection to be dropped abnormally, the stored procedures may not be deleted:
- The client (Microsoft Access) system is restarted. - SQL Server is shutdown using the "with no wait" command. - The network connection breaks.You can use SAF to drop the stored procedures manually. The command syntax is
DROP PROCedure [owner.]procedure_name[, [owner.]procedure_name...]where procedure_name is the procedure you are removing. For example
DROP PROC ODBC#sa24518, ODBC#sa2334removes two stored procedures, ODBC#sa24518 and ODBC#sa2334. If there are a number of stored procedures to delete, you can automate the process somewhat by using SQL Server to create a script to issue the DROP PROC statements. The example below assumes that you have a number of stored procedures created by a user logged in as "Joe." To delete them:
|
Keywords : kbusage OdbcOthr
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |