Many administrative and informational activities in Microsoft® SQL Server™ can be performed through system stored procedures. The system stored procedures are grouped into these categories.
|
---|
Note Unless specifically documented otherwise, all system stored procedures return a value of 0, which indicates success. To indicate failure, a nonzero value is returned.
Active Directory Procedures | |
---|---|
sp_ActiveDirectory_Obj | sp_ActiveDirectory_SCP |
Catalog Procedures | |
---|---|
sp_column_privileges | sp_special_columns |
sp_columns | sp_sproc_columns |
sp_databases | sp_statistics |
sp_fkeys | sp_stored_procedures |
sp_pkeys | sp_table_privileges |
sp_server_info | sp_tables |
Cursor Procedures | |
---|---|
sp_cursor_list | sp_describe_cursor_columns |
sp_describe_cursor | sp_describe_cursor_tables |
OLE Automation Extended Stored Procedures | |
---|---|
sp_OACreate | sp_OAMethod |
sp_OADestroy | sp_OASetProperty |
sp_OAGetErrorInfo | sp_OAStop |
sp_OAGetProperty | Object Hierarchy Syntax |
SQL Mail Procedures | |
---|---|
sp_processmail | xp_sendmail |
xp_deletemail | xp_startmail |
xp_findnextmsg | xp_stopmail |
xp_readmail |
SQL Profiler Procedures | |
---|---|
sp_trace_create | sp_trace_setfilter |
sp_trace_generateevent | sp_trace_setstatus |
sp_trace_setevent |
Web Assistant Procedures | |
---|---|
sp_dropwebtask | sp_makewebtask |
sp_enumcodepages | sp_runwebtask |
XML Procedures | |
---|---|
sp_xml_preparedocument | sp_xml_removedocument |
General Extended Procedures | |
---|---|
xp_cmdshell | xp_logininfo |
xp_enumgroups | xp_msver |
xp_findnextmsg | xp_revokelogin |
xp_grantlogin | xp_sprintf |
xp_logevent | xp_sqlmaint |
xp_loginconfig | xp_sscanf |
API System Stored Procedures
Users running SQL Profiler against ADO, OLE DB, ODBC, and DB-Library applications may notice the use of system stored procedures that are not covered in the Transact-SQL Reference. These stored procedures are used by the Microsoft OLE DB Provider for SQL Server, the SQL Server ODBC driver, and the DB-Library dynamic-link library (DLL) to implement the functionality of a database API. These stored procedures are simply the mechanism the provider or drivers use to communicate user requests to SQL Server. They are intended only for the internal use of the OLE DB Provider for SQL Server, the SQL Server ODBC driver, and the DB-Library DLL. Calling them explicitly from an SQL Server application is not supported.The complete functionality from these stored procedures is made available to SQL Server applications through the API functions they support. For example, the cursor functionality of the sp_cursor system stored procedures is made available to OLE DB applications through the OLE DB API cursor properties and methods, to ODBC applications through the ODBC cursor attributes and functions, and to DB-Library applications through the DB-Library Cursor Library.
These system stored procedures support the cursor functionality of ADO, OLE DB, ODBC, and the DB-Library Cursor Library:
|
These system stored procedures support the prepare/execute model of executing Transact-SQL statements in ADO, OLE DB, and ODBC:
sp_execute | sp_prepare | sp_unprepare |
The sp_createorphan and sp_droporphans stored procedures are used for ODBC ntext, text, and image processing.
The sp_reset_connection stored procedure is used by SQL Server to support remote stored procedure calls in a transaction.
The sp_sdidebug stored procedure is used by SQL Server for debugging Transact-SQL statements.
No comments:
Post a Comment