Table 1-1 provides a brief description of each system procedure.
Procedure |
Description |
---|---|
Displays all active roles granted to a user’s login. |
|
Allows an Adaptive Server user to be known in a database as another user. |
|
Allows users to enter user-defined audit records (comments) into the audit trail. |
|
Adds another system audit table after auditing is installed. |
|
Adds an engine to an existing engine group or, if the group does not exist, creates an engine group and adds the engine. |
|
Creates or updates a user-defined execution class that you can bind to client applications, logins, and stored procedures. |
|
Creates an extended stored procedure (ESP) in the master database. |
|
Creates an alternate login account and password to use when communicating with a remote server through Component Integration Services. |
|
Adds a group to a database. Groups are used as collective names in granting and revoking privileges. |
|
Defines the names of the months and days, and the date format, for an alternate language. |
|
Adds a new user account to Adaptive Server. |
|
Adds user-defined messages to sysusermessages for use by stored procedure print and raiserror calls and by sp_bindmsg. |
|
Specifies the mapping between a local table and an external storage location. |
|
Adds an abstract plan group. |
|
Authorizes a new remote server user by adding an entry to master.dbo.sysremotelogins. |
|
Creates a limit on the amount of server resources that a login or application can use to execute a query, query batch, or transaction. |
|
Defines a segment on a database device in the current database. |
|
Defines a remote server or defines the name of the local server. |
|
Creates a threshold to monitor space on a database segment. When free space on the segment falls below the specified level, Adaptive Server executes the associated stored procedure. |
|
Adds a named time range to Adaptive Server. |
|
Creates a user-defined datatype. |
|
Adds a dump device to Adaptive Server. |
|
Adds a new user to the current database. |
|
Enables and disables the logging of a specific system-defined or user-defined message in the Adaptive Server error log. |
|
Allows a System Security Officer to configure auditing options. |
|
Defines a passthrough connection to a remote server for a specific user, which allows the named user to enter passthrough mode automatically at login. |
|
Produces readable result set data, reformatting the width of variable-length character data to display only non-blank characters. Trailing blanks are truncated in the output. |
|
Binds a database, table, index, text object, or image object to a data cache. |
|
Binds a user-defined default to a column or user-defined datatype. |
|
Associates an execution class with a client application, login, or stored procedure. |
|
Binds a user message to a referential integrity constraint or check constraint. |
|
Binds a rule to a column or user-defined datatype. |
|
Creates, configures, reconfigures, drops, and provides information about data caches. |
|
Enables or disables prefetching (large I/O) and MRU cache replacement strategy for a table, index, text object, or image object. |
|
Changes the owner of a database. |
|
Changes a user’s group. |
|
Checks the current database for names that contain characters not in the 7-bit ASCII set. |
|
Detects and displays identifiers that are Transact-SQL reserved words. Checks server names, device names, database names, segment names, user-defined datatypes, object names, column names, user names, login names, and remote login names. |
|
Checks for the existence of the source text of the compiled object. |
|
Changes the max_rows_per_page value for future space allocations of a table or index. |
|
Clears the execution attributes of the client application, login, or stored procedure that was set by sp_setpsexe. |
|
Initiates a new accounting period for all server users or for a specified user. Prints statistics for the previous period by executing sp_reportstats. |
|
Displays the IP address of every Adaptive Server task with an attached client application, including the spid and the client host name. |
|
Compares all abstract plans in two abstract plan groups. |
|
Compares two abstract plans. |
|
Defines a common key—columns that are frequently joined—between two tables or views. |
|
Performs cluster operations such as configuring Adaptive Server as a secondary companion in a high availability system and moving a companion server from one failover mode to another |
|
Displays or changes configuration parameters. |
|
Copies all plans for one abstract plan group to another group. |
|
Copies one abstract plan to an abstract plan group. |
|
Displays the number of indexes, objects, or databases in Adaptive Server. |
|
Reports information about a specific cursor or all cursors that are active for your session, whether scrollable or non-scrollable. |
|
Allows you to:
|
|
Displays or changes database options. |
|
Specifies the order in which user databases are recovered and lists the user-defined recovery order of a database or all databases. |
|
Forces Adaptive Server to recognize changes made by alter database. Run this procedure only when instructed to do so by an Adaptive Server message. |
|
Component Integration Services only Defines a default storage location for objects in a local database. |
|
Displays information about database object dependencies—the view(s), trigger(s), and procedure(s) that depend on a specified table or view, and the table(s) and view(s) that the specified view, trigger, or procedure depends on. |
|
Changes the device parameter settings of an existing database device file. |
|
Specifies whether or not a database device can be used for database storage if the user does not specify a database device or specifies default with the create database or alter database commands. |
|
Displays the status of audit options. |
|
Sets or shows which Adaptive Server configuration parameters appear in sp_configure output. |
|
Displays information about a login account. |
|
Displays all roles granted to another role, or displays the entire hierarchy tree of roles in table format. |
|
Removes the alias user name identity established with sp_addalias. |
|
Deletes all abstract plans in an abstract plan group. |
|
Drops an Adaptive Server database device or dump device. |
|
Drops an engine from a specified engine group or, if the engine is the last one in the group, drops the engine group. |
|
Drops a user-defined execution class. |
|
Removes an ESP from the master database. |
|
Component Integration Services only Drops the definition of a remote login previously defined by sp_addexternlogin. |
|
Removes lock promotion values from a table or database. |
|
Drops a group from a database. |
|
Removes a key defined with sp_primarykey, sp_foreignkey, or sp_commonkey from the syskeys table. |
|
Drops an alternate language from the server and removes its row from master.dbo.syslanguages. |
|
Drops an Adaptive Server user login by deleting the user’s entry in master.dbo.syslogins. |
|
Drops user-defined messages from sysusermessages. |
|
Component Integration Services only Deletes the external storage mapping provided for a local object |
|
Drops an abstract plan group. |
|
Drops an abstract plan. |
|
Drops a remote user login. |
|
Removes one or more resource limits from Adaptive Server. |
|
Removes row lock promotion threshold values from a database or table. |
|
Drops a segment from a database or unmaps a segment from a particular database device. |
|
Drops a server from the list of known servers. |
|
Removes a free-space threshold from a segment. |
|
Removes a user-defined time range from Adaptive Server. |
|
Drops a user-defined datatype. |
|
Drops a user from the current database. |
|
Specifies the amount of data dumped by Backup Server during the dump database operation. |
|
Enables you to bring an engine online or offline. |
|
Estimates the amount of space required for a table and its indexes, and the time needed to create the index. |
|
Exports all plans for a specified user and abstract plan group to a user table. |
|
Extends the range of a segment to another database device. |
|
Starts and stops EJB Server. Displays status information about EJB Server. |
|
Reports information about all the locks held by a family (coordinating process and its worker processes) executing a statement in parallel. |
|
Finds an abstract plan, given a pattern from the query text or plan text. |
|
Repairs the index on one of your system tables when it has been corrupted. |
|
Flushes statistics from in-memory storage to the systabstats system table. |
|
Provides access to all the pages in a database that were previously taken offline by recovery. |
|
Provides access to an index previously marked suspect by recovery. |
|
Provides access to pages previously taken offline by recovery. |
|
Defines a foreign key on a table or view in the current database. |
|
Unloads a dynamic link library (DLL) that was previously loaded into XP Server memory to support the execution of an ESP. |
|
Retrieves stored message strings from sysmessages and sysusermessages for print and raiserror statements. |
|
Windows NT only When Integrated Security mode or Mixed mode (with Named Pipes) is active, assigns Adaptive Server roles or default permissions to Windows NT users and groups. |
|
Performs administrative tasks on Adaptive Servers configured with Sybase Failover in a high availability system. sp_ha_admin is installed with the installhavss script (insthasv on Windows NT). |
|
Reports information about a database object (any object listed in sysobjects) and about Adaptive Server-supplied or user-defined datatypes. |
|
Lists partition information for a specified table, index, or partition, or for all partitions in the database. |
|
Displays information about the objects that are bound to a data cache or the amount of overhead required for a specified cache size. |
|
Reports information on the computed columns in a specified table. |
|
Reports help information on configuration parameters. |
|
Reports information about integrity constraints used in the specified tables. |
|
Reports information about a particular database or about all databases. |
|
Reports information about a particular device or about all Adaptive Server database devices and dump devices. |
|
Displays ESPs registered in the current database, along with their associated DLL files. |
|
Component Integration Services only Reports information about external login names. |
|
Reports information about a particular group or about all groups in the current database. |
|
Reports information about the indexes created on a table. |
|
Displays information about Java classes and associated JARs that are installed in the database. |
|
Lists the columns in two tables or views that are likely join candidates. |
|
Reports information about a primary, foreign, or common key of a particular table or view, or about all keys in the current database. |
|
Reports information about a particular alternate language or about all languages. |
|
Reports the name of the device that contains the first page of the transaction log. |
|
Component Integration Services only Reports information about remote object definitions. Shows owners, objects, type, and definition. |
|
Reports information on an abstract plan group. |
|
Reports information about an abstract plan. |
|
Reports information about a particular remote server’s logins or about all remote servers’ logins. |
|
Reports information about all resource limits, limits for a given login or application, limits in effect at a given time or day of the week, or limits with a given scope or action. |
|
Reports information about permissions for database objects, users, groups, or roles. |
|
Reports information about a particular segment or about all segments in the current database. |
|
Reports information about a particular remote server or about all remote servers. |
|
Displays Adaptive Server’s default sort order and character set. |
|
Prints the text of a system procedure, trigger, view, default, rule, or integrity check constraint, and adds the number parameter, which is an integer identifying an individual procedure, when objname represents a group of procedures. This parameter tells sp_helptext to display the source text for a specified procedure in the group. |
|
Reports the segment, free-space value, status, and stored procedure associated with all thresholds in the current database or all thresholds for a particular segment. |
|
Reports information about a particular user or about all users in the current database. |
|
Hides the source text for the specified compiled object. |
|
Imports abstract plans from a user table into an abstract plan group. |
|
Checks user tables for indexes marked as suspect during recovery following a sort order change. |
|
Creates or lists an LDAP URL search string; verifies an LDAP URL search string or login. |
|
Dynamically starts and stops listeners on Adaptive Server on any given port on a per-engine basis. |
|
Lists all databases that have offline pages because of corruption detected on recovery. |
|
Lists all indexes in a database that are currently offline because of corruption detected on recovery. |
|
Lists all pages that are currently offline because of corruption detected on recovery. |
|
Configures license management-related information on Adaptive Server. The configuration options set by sp_lmconfig are stored in the sylapi properties file. |
|
Reports information about processes that currently hold locks. |
|
Locks an Adaptive Server account so that the user cannot log in, or displays a list of all locked accounts. |
|
Moves the transaction log of a database with log and data on the same device to a separate database device. |
|
Windows NT only Displays the value of one or all integrated security parameters. |
|
Windows NT only Displays all roles granted to Windows NT users and groups with sp_grantlogin. |
|
Changes the log I/O size used by Adaptive Server to a different memory pool when it is doing I/O for the transaction log of the current database. |
|
Maps external users to Adaptive Server logins. |
|
Backs up, drops, and flushes QP metrics—always captured in the default running group, which is group 1 in each respective database—and their statistics on queries. |
|
Modifies the default database, default language, default role activation, or full name for an Adaptive Server login account. |
|
Changes a resource limit by specifying a new limit value or the action to take when the limit is exceeded, or both. |
|
Changes the start day, start time, end day, and/or end time associated with a named time range. |
|
Allows the System Administrator to modify the density values of a column—or columns—in sysstatistics. |
|
Modifies a threshold by associating it with a different threshold procedure, free-space level, or segment name. You cannot use sp_modifythreshold to change the amount of free space or the segment name for the last-chance threshold. |
|
Displays statistics about Adaptive Server. |
|
Monitors more than 30 resources compared to the 6 resources it monitored in earlier versions. |
|
Shows lock contention, lock wait-time, and deadlock statistics for tables and indexes. |
|
Component Integration Services only Allows the user to pass a SQL command buffer to a remote server. |
|
Adds or changes a password for an Adaptive Server login account. |
|
Puts future space allocations for a table or an index on a particular segment. |
|
Recommends suitable sizes for new dbccdb and dbccalt databases, lists suitable devices for dbccdb and dbccalt, and suggests a cache size and a suitable number of worker processes for the target database. |
|
Creates, drops, resizes, and provides information about memory pools within data caches. |
|
Checks and rebuilds indexes after a cross-platform load database where the endian types are different. |
|
Defines a primary key on a table or view. |
|
Windows NT only Reads, processes, sends, and deletes messages in the Adaptive Server message inbox. |
|
Displays or changes the transaction modes associated with stored procedures. |
|
Causes each stored procedure and trigger that uses the named table to be recompiled the next time it runs. |
|
Remaps a stored procedure, trigger, rule, default, or view from releases later than 4.8 and earlier than 10.0 to be compatible with releases 10.0 and later. Use sp_remap on pre-release 11.0 objects that the release 11.0 upgrade procedure failed to remap. |
|
Displays or changes remote login options. |
|
Component Integration Services only Establishes a connection to a remote server, passes a query buffer to the remote server from the client, and relays the results back to the client. |
|
Changes the name of a user-created object or user-defined datatype in the current database. |
|
Changes the name of a database. You cannot rename system databases or databases with external referential integrity constraints. |
|
Renames an abstract plan group. |
|
Reports statistics on system usage. |
|
Windows NT only When Integrated Security mode or Mixed mode (with Named Pipes) is active, revokes Adaptive Server roles and default permissions from Windows NT users and groups. |
|
Grants or revokes system roles to an Adaptive Server login account. |
|
Sends a message to a User Datagram Protocol (UDP) port. |
|
Displays or changes remote server options. |
|
Assigns or changes the alias for an alternate language. |
|
Sets or changes the lock promotion thresholds for a database, for a table, or for Adaptive Server. |
|
Sets custom execution attributes “on the fly” for an active client application, login, or stored procedure. |
|
Changes the text of the abstract plan of an existing plan without changing the associated query. |
|
Sets or changes row-lock promotion thresholds for a datarows-locked table, for all datarows-locked tables in a database, or for all datarows-locked tables on a server. |
|
Displays and sets the recovery fault isolation mode. |
|
On recovery, sets the maximum number of suspect pages that Adaptive Server will allow in the specified database before taking the entire database offline. |
|
Displays information about engine group assignments, bound client applications, logins, and stored procedures. |
|
Displays the execution class attributes and the engines in any engine group associated with the specified execution class. |
|
Displays the query plan for any user connection for the current SQL statement (or a previous statement in the same batch). The query plan is displayed in showplan format. |
|
Displays execution class, current priority, and affinity for all processes running on Adaptive Server. |
|
Displays estimates of the number of rows, the number of data pages, and the space used by one table or by all tables in the current database. |
|
Adds, deletes, or displays a list of server certificates for Adaptive Server. |
|
Displays the syntax of Transact-SQL statements, system procedures, utilities, and other routines, depending on which products and corresponding sp_syntax scripts exist on Adaptive Server. |
|
Displays performance information. |
|
Creates the default temporary database group, binds temporary databases to the default temporary database group, binds users and applications to the default temporary database group or to specific temporary databases, and provides the binding interface for maintaining bindings in sysattributes that are related to the multiple temporary database. |
|
Executes automatically when the number of free pages on the log segment falls below the last-chance threshold, unless the threshold is associated with a different procedure. Sybase does not provide this procedure. |
|
Reports information about active transactions. |
|
Unbinds a database, table, index, text object, or image object from a data cache. |
|
Unbinds all objects that are bound to a cache. |
|
Unbinds a created default value from a column or from a user-defined datatype. |
|
Removes the execution class attribute previously associated with an client application, login, or stored procedure for the specified scope. |
|
Unbinds a user-defined message from a constraint. |
|
Unbinds a rule from a column or from a user-defined datatype. |
|
Returns the version information of the installation scripts (installmaster, installdbccdb, and so on) that was last run and whether it was successful. |
|
Notifies the Backup Server™ that the operator performed the requested volume handling during a dump or load. |
|
Reports information about all current Adaptive Server users and processes or about a particular user or process. |
Copyright © 2005. Sybase Inc. All rights reserved. |