You are on page 1of 1

QuIcK ReFereNce GuIde - SYsteM Stored Procedures - SQL SerVer 2005

This is a quick reference for the usable system proc. Return name of the DLL for the specified extended stored Create a group (i.e., role) in the current database. Remove a server login from the specified fixed server role. [ , [ @start_run_date = ] start_run_date ]

Not all system procs are in scope, only the ones DataBase ENgINe procedure, or all extended stored procedures.
sp_helpextendedproc [ [@funcname = ] ‘procedure’ ]
sp_addgroup [ @grpname = ] ‘group’ sp_dropsrvrolemember [ @loginame = ] ‘login’ ,
[ @rolename = ] ‘role’ GeNeral EXteNded [ , [ @end_run_date = ] end_run_date ]
[ , [ @start_run_time = ] start_run_time ]
considered to be most useful. Focus is on ss2k5 [ , [ @end_run_time = ] end_run_time ]
system procs. Stored Procedures Return information on the specified database filename,
or all database files.
Create new SQL Server login.
sp_addlogin [ @loginame = ] ‘login’
[ , [ @passwd = ] ‘password’ ]
Remove database user from the current database.
sp_dropuser [ sp_dropuser ] ‘user’
Stored Procedures [ , [ @minimum_run_duration = ] minimum_run_duration ]
[ , [ @run_status = ] run_status ]
[ , [ @minimum_retries = ] minimum_retries ]
Create and store a user defined message inside [ , [ @defdb = ] ‘database’ ] [ , [ @oldest_first = ] oldest_first ]
Initial categories utilized are defined using http:// sp_helpfile [ [ @filename = ] ‘name’ ]
[ , [ @deflanguage = ] ‘language’ ] Spawn a command shell and execute the
the instance. [ , [ @sid = ] sid ]
Create specified database user for the specified server command string. [ , [ @server = ] ‘server’ ]
msdn2.microsoft.com/en-us/library/ms187961.aspx: sp_addmessage [ @msgnum = ] msg_id ,
Return information on the specified filegroup, login. xp_cmdshell { ‘command_string’ } [ , no_output ]
[ , [ @mode = ] ‘mode’ ]
[ , [ @encryptopt= ] ‘encryption_option’ ]
[ @severity = ] severity , sp_grantdbaccess [ @loginame = ] ‘login’
[ @msgtext = ] ‘msg’ or all filegroups.
sp_helpfilegroup [ [ @filegroupname = ] ‘name’ ]
[ , [ @name_in_db = ] ‘name_in_db’ [ OUTPUT ] ]
Return list of defined groups within the specified domain. Return information about the job schedule for the
1. Catalog [ , [ @lang = ] ‘language’ ] Create and map a remote login to a local login.
specified job.
[ , [ @with_log = ] ‘with_log’ ] sp_addremotelogin [ @remoteserver = ] ‘remoteserver’ xp_enumgroups [ ‘domain_name’ ]
2. Database Engine [ , [ @replace = ] ‘replace’ ] Return information regarding the indexes on the [ , [ @loginame = ] ‘login’ ] Create a server login for a domain user or group. sp_help_jobschedule
sp_grantlogin [@loginame=] ‘login’ [ @job_id = ] job_id |
3. General Extended specified table or view. [ , [ @remotename = ] ‘remote_name’ ] Log event in the instance error log and the server [ @job_name = ] ‘job_name’
Create a backup device. sp_helpindex [ @objname = ] ‘name’ event log. [ , [ @schedule_name = ] ‘schedule_name’ ] |
4. Security sp_addumpdevice [ @devtype = ] ‘device_type’ Create a role in the current database. Return list of all roles for the current database. xp_logevent { error_number , ‘message’ } [ , ‘severity’ ] [ , [ @schedule_id = ] schedule_id ]
sp_helpdbfixedrole [ [ @rolename = ] ‘role’ ]
5. SQL Profiler , [ @logicalname = ] ‘logical_name’ Return information regarding the remote, linked, or sp_addrole [ @rolename = ] ‘role’ [ , [ @include_description = ] include_description ]
, [ @physicalname = ] ‘physical_name’ [ , [ @ownername = ] ‘owner’ ]
6. SQL Server Agent [ , { [ @cntrltype = ] controller_type | replication servers for the current instance. Return the login security context for the current instance.
sp_helpserver [ [ @server = ] ‘server’ ] Return information for the specified role, or all roles for xp_loginconfig [‘config_name’] Return information on the job steps for the specified job.
[ @devstatus = ] ‘device_status’ }
[ , [ @optname = ] ‘option’ ] Add a database user, database role, or server login to the sp_help_jobstep
] current database.
All system stored procedures are located inside the [ , [ @show_topology = ] ‘show_topology’ ] the specified role. Return information for the specified login or all logins. { [ @job_id = ] ‘job_id’
sp_addrolemember [ @rolename = ] ‘role’, sp_helpgroup [ [ @grpname = ] ‘role’ ] | [ @job_name = ] ‘job_name’ }
master database, except for the SQL Server Agent xp_logininfo [[@acctname =] ‘account_name’]
Alter a user defined message inside the instance. Return the sort order and character set information for [ @membername = ] ‘security_account’ [,[@option =] ‘all’ | ‘members’]
[ , [ @step_id = ] step_id ]
stored procedures. Those are located in the msdb sp_altermessage [ @message_id = ] message_number ,
Return information for the specified remote or linked [,[@privelege=] variable_name OUTPUT]
[ , [ @step_name = ] ‘step_name’ ]
[ @parameter = ] ‘write_to_log’ , the current instance. [ , [ @suffix = ] suffix ]
database, and as a result the user will either need to sp_helpsort Create a remote server entry for the local instance. server, or all defined remote and linked servers.
[ @parameter_value = ] ‘value’
sp_addserver [ @server = ] ‘server’ sp_helplinkedsrvlogin [ [ @rmtsrvname = ] ‘rmtsrvname’ ] Return version information for the current instance.
connect to the msdb database or issue an execute [ , [ @local= ] ‘local’ ] Returns information about operators and associated
[ , [ @locallogin = ] ‘locallogin’ ]
command as follows: EXEC msdb..[proc_name] Attach a database file(s) to the instance. Return statistic information for the specified table. [ , [ @duplicate_ok = ] ‘duplicate_OK’ ] xp_msver [ optname ]
alerts.
sp_attach_db [ @dbname= ] ‘dbname’ sp_helpstats[ @objname = ] ‘object_name’
sp_help_notification
, [ @filename1= ] ‘filename_n’ [ ,...16 ] [ , [ @results = ] ‘value’ ] Return information for the specified server login, or for [ @object_type = ] ‘object_type’ ,
Add a server login as a member to the specified fixed all server logins. [ @name = ] ‘name’ ,
Return the definition of the specified object. server role. sp_helplogins [ [ @LoginNamePattern = ] ‘login’ ]
SQL SerVer ProFIler
[ @enum_type = ] ‘enum_type’ ,
Attach a database file to the instance. This procedure is
CATALOG STORED
sp_addsrvrolemember [ @loginame= ] ‘login’ [ @notification_method = ] notification_method
sp_helptext [ @objname = ] ‘name’ [ , [ @columnname = ] computed_
most useful when no associated log file is available. column_name ]
, [ @rolename = ] ‘role’ [ , [ @target_name = ] ‘target_name’ ]
sp_attach_single_file_db [ @dbname= ] ‘dbname’ Return information for the specified domain group, or all

PROCEDURES
, [ @physname= ] ‘physical_name’
Return information on any DML triggers for the
specified table.
Add an existing server login as a user in the current
database.
domain groups, with access to the current database.
sp_helpntgroup [ [ @ntname= ] ‘name’ ] Stored Procedures Returns information about the specified operator, or all
operators defined for the current instance.
Display or alter the UPDATE STATISTICS setting for a table sp_adduser [ @loginame = ] ‘login’
sp_helptrigger [ @tabname = ] ‘table’ Return information for the specified remote server logins, Create a new trace definition. sp_help_operator
Display column level permissions for a table. or view. [ , [ @name_in_db = ] ‘user’ ]
[ , [ @triggertype = ] ‘type’ ] sp_trace_create [ @traceid = ] trace_id OUTPUT [ [ @operator_name = ] ‘operator_name’ ]
sp_column_privileges [ @table_name = ] ‘table_name’ sp_autostats [ @tblname = ] ‘table_name’ [ , [ @grpname = ] ‘role’ ] or for all remote server logins, defined on the local server. [ , [ @operator_id = ] operator_id ]
[ , [ @table_owner = ] ‘table_owner’ ] sp_helpremotelogin [ [ @remoteserver = ] ‘remoteserver’ ] , [ @options = ] option_value
[ , [ @flagc = ] ‘stats_flag’ ]
[ , [ @table_qualifier = ] ‘table_qualifier’ ] Configure locking options for specified table or index. [ , [ @remotename = ] ‘remote_name’ ] , [ @tracefile = ] ‘trace_file’
[ , [ @indname = ] ‘index_name’ ]
[ , [ @column_name = ] ‘column’ ] sp_indexoption [ @IndexNamePattern = ] ‘table_or_index_name’
Alter the password of the specified application role in the [ , [ @maxfilesize = ] max_file_size ] Return information for the specified schedule, or all
, [ @OptionName = ] ‘option_name’ current database. [ , [ @stoptime = ] ‘stop_time’ ]
schedules.
Display or alter instance configuration settings for sp_approlepassword [ @rolename= ] ‘role’ , Return information for the specified database role, or all [ , [ @filecount = ] ‘max_rollover_files’ ]
Display column information for a table. the instance.
, [ @OptionValue = ] ‘value’
[ @newpwd = ] ‘password’ database roles, for the current database. sp_help_schedule
sp_columns [ @table_name = ] object [ , [ @table_owner = ] owner ] sp_helprole [ [ @rolename = ] ‘role’ ] [ { [ @schedule_id = ] id
sp_configure [ [ @configname = ] ‘option_name’ Create an event.
[ , [ @table_qualifier = ] qualifier ] Return information about locks. | [ @schedule_name = ] ‘schedule_name’ } ]
[ , [ @configvalue = ] ‘value’ ] ]
[ , [ @column_name = ] column ] sp_lock [[@spid1 = ] ‘spid1’] [,[@spid2 = ] ‘spid2’]
Map an existing database user to a SQL Server login. sp_trace_generateevent [ @eventid = ] event_id [ , [ @attached_schedules_only = ] attached_schedules_only ]
[ , [ @ODBCVer = ] ODBCVer ] sp_change_users_login [ @action = ] ‘action’ Return information for the specified database role [ , [ @userinfo = ] ‘user_info’ ] [ , [ @include_description = ] include_description ]
[;]
Create statistics for columns in a table, or for columns [ , [ @UserNamePattern = ] ‘user’ ] member, or all database role members, for the current [ , [ @userdata = ] user_data ]
specific to indexes in a table. [ , [ @LoginName = ] ‘login’ ] database.
List all databases for the current instance, including size Return statistical information about the current [ , [ @password = ] ‘password’ ] Create or remove an event from a defined trace. Send email to a defined Database Mail profile.
sp_createstats [ [ @indexonly = ] ‘indexonly’ ] sp_helprolemember [ [ @rolename = ] ‘role’ ]
in KB. [ , [ @fullscan = ] ‘fullscan’ ] instance. sp_trace_setevent [ @traceid = ] trace_id sp_notify_operator
sp_databases sp_monitor , [ @eventid = ] event_id [ @profilename = ] ‘profilename’ ,
[ , [ @norecompute = ] ‘norecompute’ ] Alter the owner of the current database. Return information on permissions in the , [ @columnid = ] column_id [ @id = ] id ,
sp_changedbowner [ @loginame = ] ‘login’ [ @name = ] ‘name’ ,
Display list of all tables with a defined foreign key [ , [ @map= ] remap_alias_flag ] current database. , [ @on = ] on
Cycle the error log as if the server had been restarted. Configure the specified stored procedure to be executed sp_helprotect [ [ @name = ] ‘object_statement’ ] [ @subject = ] ‘subject’ ,
relationship to the given primary key table. sp_cycle_errorlog when the server instance is started. [ @body = ] ‘message’ ,
[ , [ @username = ] ‘security_account’ ]
sp_fkeys [ @pktable_name = ] ‘pktable_name’ sp_procoption [ @ProcName = ] ‘procedure’ Alter the role membership of a user in the database to [ , [ @grantorname = ] ‘grantor’ ]
Create and apply a filter to a defined trace. [ @file_attachments = ] ‘attachment’
[ , [ @pktable_owner = ] ‘pktable_owner’ ] , [ @OptionName = ] ‘option’ sp_trace_setfilter [ @traceid = ] trace_id [ @mail_database = ] ‘mail_host_database’
[ , [ @pktable_qualifier = ] ‘pktable_qualifier’ ] Display list of supported data types for the instance. use only the specified role. [ , [ @permissionarea = ] ‘type’ ]
, [ @columnid = ] column_id
sp_datatype_info [ [ @data_type = ] data_type ] , [ @OptionValue = ] ‘value’ sp_changegroup [ @grpname= ] ‘role’
{ , [ @fktable_name = ] ‘fktable_name’ } , [ @logical_operator = ] logical_operator
[ , [ @fktable_owner = ] ‘fktable_owner’ ] [ , [ @ODBCVer = ] odbc_version ] , [ @username = ] ‘user’ Return list of fixed server roles. , [ @comparison_operator = ] comparison_operator Remove history for the specified job, or for all jobs.
[ , [ @fktable_qualifier = ] ‘fktable_qualifier’ ] Configure a procedure or trigger to be recompiled upon sp_helpsrvrole [ [ @srvrolename = ] ‘role’ ] , [ @value = ] value sp_purge_jobhistory
next execution. { [ @job_name = ] ‘job_name’ |
Alters database behaviors to be compatible with Alter the owner of the specified object in the current
sp_recompile [ @objname = ] ‘object’ | [ @job_id = ] job_id }
Display primary key for given table. previous versions. database. Return member information for the specified fixed Start, pause, or remove a defined trace. [ , [ @oldest_date = ] oldest_date ]
sp_pkeys [ @table_name = ] ‘name’ sp_dbcmptlevel [ [ @dbname = ] name ] sp_changeobjectowner [ @objname = ] ‘object’ , server role, or all fixed server roles. sp_trace_setstatus [ @traceid = ] trace_id
[ , [ @table_owner = ] ‘owner’ ] [ , [ @new_cmptlevel = ] version ] Refresh the metadata for the specified view. [ @newowner = ] ‘owner’ sp_helpsrvrolemember [ [ @srvrolename = ] ‘role’ ] , [ @status = ] status
[ , [ @table_qualifier = ] ‘qualifier’ ] sp_refreshview [ @viewname = ] ‘viewname’ Start the specified job.
sp_start_job
Display or alter configuration settings for a database. Return the permissions for the specified database role. Return information for the specified database user or { [@job_name =] ‘job_name’
Display attribute id and values for the current instance. sp_dboption [ [ @dbname = ] ‘database’ ] Alter the name of the specified object. sp_dbfixedrolepermission [ [ @rolename = ] ‘role’ ]
role, or all database users in the current database. | [@job_id =] job_id }
sp_server_info [[@attribute_id = ] ‘attribute_id’] [ , [ @optname = ] ‘option_name’ ]
[ , [ @optvalue = ] ‘value’ ]
sp_rename [ @objname = ] ‘object_name’ , [ @newname = ] ‘new_name’
[ , [ @objtype = ] ‘object_type’ ] Alter the default database for a server login.
sp_helpuser [ [ @name_in_db = ] ‘security_account’ ]
SQL SerVer AgeNt [ , [@error_flag =] error_flag]
[ , [@server_name =] ‘server_name’]
[ , [@step_name =] ‘step_name’]
Display columns that uniquely identify a row in a given
Stored Procedures
sp_defaultdb [ @loginame= ] ‘login’,
Remove a database and all associated database files. [ @defdb= ] ‘database’ Return name and owner on all databases for which the [ , [@output_flag =] output_flag]
table. Alter the name of the specified database.
sp_dbremove [ @dbname = ] ‘database’ sp_renamedb [ @dbname = ] ‘old_name’ , [ @newname = ] ‘new_name’ current user has access.
sp_special_columns [@table_name =] ‘table_name’
[ , [ @dropdev = ] ‘dropdev’ ] sp_MShasdbaccess
[,[@table_owner =] ‘table_owner’] Alter the default language for the specified server login. NOTE: These stored procedures are located inside the msdb database. Stop the specified job.
[,[@qualifier =] ‘qualifier’] Configure the AFTER triggers to be fired either first sp_defaultlanguage [ @loginame= ] ‘login’ sp_stop_job
[,[@col_type =] ‘col_type’] Deletes backup and restore entries in the msdb database [ , [ @language= ] ‘language’ ] Alter the password for a SQL Server login. [@job_name =] ‘job_name’
[,[@scope =] ‘scope’] or last. sp_password [ [ @old = ] ‘old_password’ , ] Return information for specified alert, or all alerts. | [@job_id =] job_id
for entries older than the specified date. [ @loginame= ] ‘login’,
[,[@nullable =] ‘nullable’] sp_settriggerorder [ @triggername = ] ‘[ triggerschema. ] triggername’ { [ @new =] ‘new_password’ } sp_help_alert [ [ @alert_name = ] ‘alert_name’ ] | [@originating_server =] ‘master_server’
sp_delete_backuphistory [ @oldest_date = ] ‘oldest_date’ [ @defdb= ] ‘database’
[,[@ODBCVer =] ‘ODBCVer’] , [ @order = ] ‘value’ [ , [ @loginame = ] ‘login’ ] [ , [ @order_by = ] ‘order_by’ ] | [@server_name =] ‘target_server’
, [ @stmttype = ] ‘statement_type’ [ , [ @alert_id = ] alert_id ]
Display dependency information about the [ , [ @namespace = ] { ‘DATABASE’ | ‘SERVER’ | NULL } ] Deny specified domain login the ability to connect to the [ , [ @category_name = ] ‘category’ ]
Display parameter information for a given current instance. Remove specified database user from the current [ , [ @legacy_format = ] legacy_format ]
specified object. Author, Thomas LaRock
stored procedure. sp_depends [ @objname = ] ‘object’ Return space information for the specified object or sp_denylogin [ @loginame= ] ‘login’ database.
sp_sproc_columns [[@procedure_name = ] ‘name’] sp_revokedbaccess [ @name_in_db = ] ‘name’
Thomas LaRock, a member of Quest’s Association for SQL Server
current database. Return information about the specified job, alert, or Experts, is a seasoned IT professional with almost a decade
[ , [@procedure_owner = ] ‘owner’]
[ , [@procedure_qualifier = ] ‘qualifier’] Detach a database from the instance. sp_spaceused [[ @objname = ] ‘objname’ ] Remove defined alias for the specified login as a operator. of technical and management experience. Currently serving
[ , [@column_name = ] ‘column_name’] sp_detach_db [ @dbname= ] ‘dbname’ [,[ @updateusage = ] ‘updateusage’ ] database user. Remove domain user or group as a server login. sp_help_category [ [ @class = ] ‘class’ ]
sp_revokelogin [ @loginame= ] ‘login’ as a database engineering team lead with ING Investment
[ , [@ODBCVer = ] ‘ODBCVer’] [ , [ @skipchecks= ] ‘skipchecks’ ] sp_dropalias [ @loginame = ] ‘login’ [ , [ @type = ] ‘type’ ]
[ , [ @name = ] ‘name’ ] Management, Thomas has progressed through several roles
[ , [@fUsePattern = ] ‘fUsePattern’] [ , [ @KeepFulltextIndexFile= ] ‘KeepFulltextIndexFile’ ] Configure options for specified table. at ING, including programmer, analyst, and DBA. Prior to ING,
Configure permissions for the specified application role in [ , [ @suffix = ] suffix ]
sp_tableoption [ @TableNamePattern = ] ‘table’ Remove specified application role from the current he worked at several software and consulting companies,
Display indexes and statistics for a given table. Delete a device from the instance. , [ @OptionName = ] ‘option_name’
database. the current database.
, [ @OptionValue = ] ‘value’ sp_setapprole [ @rolename = ] ‘role’, Return information about the specified job, or all jobs. working at customer sites in the United States and abroad.
sp_statistics [ @table_name = ] ‘table_name’ sp_dropdevice [ @logicalname = ] ‘device’ sp_dropapprole [@rolename = ] ‘role’
[ , [ @table_owner = ] ‘owner’ ] [ , [ @delfile = ] ‘delfile’ ] [ @password = ] { encrypt N’password’ } sp_help_job Thomas holds a MS degree in mathematics from Washington
| [ [ @job_id = ] job_id ] State University and is also a member of PASS and the Usability
[ , [ @table_qualifier = ] ‘qualifier’ ] Execute UPDATE STATISTICS against all tables in the
[ , [ @index_name = ] ‘index_name’ ] Remove a group (i.e., role) from the current database. ‘password’ [ , [ @encrypt = ] { ‘none’ | ‘odbc’ } ] [ , [ @job_name = ] ‘job_name’ ]
Remove a user defined message from the instance. current database. sp_dropgroup [ @rolename = ] ‘role’ [ , [ @fCreateCookie = ] true | false ] [ , [ @job_aspect = ] ‘job_aspect’ ]
Professional’s Association.
[ , [ @is_unique = ] ‘is_unique’ ] sp_updatestats [ [ @resample = ] ‘resample’]
sp_dropmessage [ @msgnum = ] message_number [ , [ @cookie = ] @cookie OUTPUT ] [ , [ @job_type = ] ‘job_type’ ]
[ , [ @accuracy = ] ‘accuracy’ ]
[ , [ @lang = ] ‘language’ ] [ , [ @owner_login_name = ] ‘login_name’ ]
Remove a SQL Server login from the current instance.
Return information about the specified login or all logins sp_droplogin [ @loginame= ] ‘login’ Return permission information for the specified fixed
[ , [ @subsystem = ] ‘subsystem’ ]
Display list of stored procedures in current database. Execute a T-SQL statement. [ , [ @category_name = ] ‘category’ ]
sp_stored_procedures [ [ @sp_name = ] ‘name’ ] currently server role, or all fixed server roles.
sp_executesql [ @stmt = ] stmt [ , [ @enabled = ] enabled ]
[ , [ @sp_owner = ] ‘schema’] connected to the instance. Remove the specified remote login from the current sp_srvrolepermission [ [ @srvrolename = ] ‘role’] [ , [ @execution_status = ] status ]
[ sp_who [[@login_name =] ‘login’]
[ , [ @sp_qualifier = ] ‘qualifier’ ] instance. [ , [ @date_comparator = ] ‘date_comparison’ ]
{, [@params=] N’@parameter_name data_type [ [ OUT [ PUT ][,...n]’ }
[ , [@fUsePattern = ] ‘fUsePattern’ ] [ , [ @date_created = ] date_created ]
{, [ @param1 = ] ‘value1’ [ ,...n ] } sp_dropremotelogin [ @remoteserver = ] ‘remoteserver’ Removes an application role and reverts to previous
[ , [ @loginame = ] ‘login’ ] [ , [ @date_last_modified = ] date_modified ]
] security context. [ , [ @description = ] ‘description_pattern’ ]
Display table level permissions for a table. [ , [ @remotename = ] ‘remote_name’ ] sp_unsetapprole @cookie
sp_table_privileges [ @table_name = ] ‘table_name’
[ , [ @table_owner = ] ‘table_owner’ ]
[ , [ @table_qualifier = ] ‘table_qualifier’ ]
[ , [@fUsePattern =] ‘fUsePattern’]
Return information about the specified database object,
or all objects.
sp_help [ [ @objname = ] ‘name’ ]
SecurItY Stored Remove specified empty role from the current database.
sp_droprole [ @rolename= ] ‘role’
Return information on domain users or groups that exist
as server logins, but no longer exist in the domain.
Return information about the current state of the
specified job,

Display list of all tables and views in current database. Return information about the specified database, or all Procedures Remove a database user, database role, or server login
from the specified role.
sp_validatelogins or all jobs.
sp_help_jobactivity
[ [ @job_id = ] job_id ] | [ @job_name = ] ‘job_name’ ] ]
sp_tables [ [ @table_name = ] ‘name’ ] databases. [ , [ @session_id = ] session_id ] ]
[ , [ @table_owner = ] ‘owner’ ] sp_helpdb [ [ @dbname= ] ‘name’ ] Map a server login to a database user. sp_droprolemember [ @rolename = ] ‘role’ ,
[ , [ @table_qualifier = ] ‘qualifier’ ] sp_addalias [ @loginame = ] ‘login’ , [ @membername = ] ‘security_account’ Find all your SQL Servers in your
[ , [ @table_type = ] “type” ] [ @name_in_db = ] ‘alias_user’ Return information on the history of the specified job,
Return information about the specified backup device,
[ , [@fUsePattern = ] ‘fUsePattern’]
or all backup devices.
Remove defined remote or linked server from the current environment with our free tool – or all jobs.
sp_help_jobhistory [ [ @job_id = ] job_id ]
Create an application role in the current database. instance.
sp_helpdevice [ [ @devname = ] ‘name’ ] sp_addapprole [ @rolename = ] ‘role’ , sp_dropserver [ @server = ] ‘server’ download from quest.com/sqldiscovery [ , [ @job_name = ] ‘job_name’ ]
[ , [ @step_id = ] step_id ]
[ @password = ] ‘password’ [ , [ @droplogins = ] { ‘droplogins’ | NULL} ] [ , [ @sql_message_id = ] sql_message_id ]
[ , [ @sql_severity = ] sql_severity ]