sp_helpdevice  sp_helpexternlogin

Chapter 1: System Procedures

sp_helpextendedproc

Description

Displays extended stored procedures (ESPs) in the current database, along with their associated DLL files.

Syntax

sp_helpextendedproc [esp_name]

Parameters

esp_name

is the name of the extended stored procedure. It must be a procedure in the current database.

Examples

Example 1

Lists the xp_cmdshell ESP and the name of the DLL file in which its function is stored:

use sybsystemprocs
go
sp_helpextendedproc xp_cmdshell
ESP Name    DLL Name 
----------- ---------- 
xp_cmdshell sybsyesp

Example 2

Lists all the ESPs in the current database, along with the names of the DLL files in which their functions are stored:

sp_helpextendedproc
ESP Name    DLL Name 
----------- ---------- 
xp_freedl    sybsyesp
xp_cmdshell  sybsyesp

Usage

Permissions

Only a System Administrator can execute sp_helpextendedproc to see all the ESPs in the database. All users can execute sp_helpextendedproc to see ESPs owned by themselves or by the Database Owner.

Auditing

Values in event and extrainfo columns from the sysaudits table are:

Event

Audit option

Command or access audited

Information in extrainfo

38

exec_procedure

Execution of a procedure

  • Roles – Current active roles

  • Keywords or options – NULL

  • Previous value – NULL

  • Current value – NULL

  • Other information – All input parameters

  • Proxy information – Original login name, if set proxy in effect

See also

Commands create procedure, drop procedure

Extended system procedure xp_cmdshell

System procedures sp_addextendedproc, sp_dropextendedproc





Copyright © 2005. Sybase Inc. All rights reserved. sp_helpexternlogin

View this book as PDF