Adaptive Server Reference Manual: Procedures

Read about updates, corrections, and clarifications for Adaptive Server Reference Manual: Procedures.

sp_addobjectdef

The Usage section of the sp_addobjectdef reference page includes this bullet item, which is incomplete:

Replace with:

sp_bindexeclass

The description of this stored procedure reads: "Associates an execution class with a client application, login, or stored procedure."

Update the description, with "Associates an execution class with a client application, login, stored procedure, or default execution class."

Syntax updates

The definitions of the parameters have been updated:

Example

Add this to the Example section:

This statement assigns 'CLASS1' attributes to all tasks that are running with default execution attributes:

sp_bindexeclass NULL, 'DF', NULL, 'CLASS1'
Usage updates

Add this new bullet item:

In addition, these two bullet items have been modified, and should now read:

sp_cacheconfig

The Data Cache Memory subsection in the Usage section of the reference page for sp_cacheconfig includes a bullet item that states, in part:
  • A data cache requires a small percentage of overhead for structures that manage the cache. All cache overhead is taken from the default data cache.
Since you can configure the default data cache size separately from total memory, the cache overhead is taken from free memory, not the default data cache. For this reason, the bullet should read:
  • A data cache requires a small percentage of overhead for structures that manage the cache. All cache overhead is taken from free memory.

sp_downgrade

The reference page for sp_downgrade should specify that you can execute this stored procedure only in the master database.

sp_dropexeclass

A bullet item in the Usage section reads as follows:

Replace with:

sp_lmconfig

There is a correction to the sp_lmconfig stored procedure. The syntax in the book appears as:
sp_lmconfig
	    [ 'edition' [, edition_type ]]
	    [ , 'license type' [ , license_type_name ]]
	    [ , 'smtp host' [ , smtp_host_name ]]
	    [ , 'smtp port' [ , smtp_port_number ]]
	    [ , 'email sender' [ , sender_email_address ]]
	    [ , 'email recipients' [ , email_recipients ]]]
	    [ , 'email severity' [ , email_severity ]]
Replace with:
sp_lmconfig
     [
        [ 'edition' [, edition_type ]]                 |
        [ 'license type' [, license_type_name ]]       |
        [ 'smtp host' [, smtp_host_name ]]             |
        [ 'smtp port' [, smtp_port_number ]]           |
        [ 'email sender' [, sender_email_address ]]    |
        [ 'email recipients' [, email_recipients ]]    |
        [ 'email severity' [, email_severity ]]
     ] 

The sp_lmconfig procedure, when executed without parameters, also displays the server name from where the license is checked out. Example #1 in the reference page should display the following, with the addition of the column "Server Name."

1> sp_lmconfig
2> go

 Parameter Name    Config Value
 ----------------- ------------
 edition           EE
 license type      CP
 smtp host         null
 email recipients  null
 email severity    null
 smtp port         null
 email sender      null

 License Name         Version    Quantity Status     Expiry Date         Server Name
 ---------------      ---------- -------- ---------- ------------------- --------------------
 ASE_HA               2010.03314 2        expirable  Apr 1 2010 12:00AM cuprum
 ASE_ASM              null       0        not used   null                null
 ASE_EJB              null       0        not used   null                null
 ASE_EFTS             null       0        not used   null                null
 ASE_DIRS             null       0        not used   null                null
 ASE_XRAY             null       0        not used   null                null
 ASE_ENCRYPTION       null       0        not used   null                null
 ASE_CORE             2010.03314 2        expirable  Apr 1 2010 12:00AM cuprum
 ASE_PARTITIONS       null       0        not used   null                null
 ASE_RLAC             null       0        not used   null                null
 ASE_MESSAGING_TIBJMS null       0        not used   null                null
 ASE_MESSAGING_IBMMQ  null       0        not used   null                null
 ASE_MESSAGING_EASJMS null       0        not used   null                null

 Property Name Property Value
 ------------- --------------
 PE            EE
 LT            CP
 ME            null
 MC            null
 MS            null
 MM            null
 CP            0
 AS            A

(return status = 0) 

sp_locklogin

Examples 2 and 4 use all, which sp_locklogin does not recognize . A note in the Usage section correctly states:

Note: A value of NULL for a login means all logins."

Example 2 locks all logins except those with the sa_role. The erroneous syntax is:

sp_locklogin "all", "lock", sa_role
Replace with:
sp_locklogin NULL, "lock", sa_role

Example 4 locks all login accounts that have not authenticated within the past 60 days. The erroneous syntax is:

sp_locklogin 'all', 'lock', NULL, 60
Replace with:
sp_locklogin NULL, 'lock', NULL, 60

sp_reportstats

In the reference page for sp_reportstats, disregard the following bullet, which no longer applies:

  • sp_reportstats does not report statistics for any process with a system user ID (suid) of 0 or 1. This includes deadlock detection, checkpoint, housekeeper, network, auditing, mirror handlers, and all users with sa_role.

sp_showcontrolinfo

The definitions of the parameters have been updated:

Usage updates

Add these two bullets:

sp_unbindexeclass

The description of this stored procedure reads: "Removes the execution class attribute previously associated with an client application, login, or stored procedure for the specified scope."

Update the description with: "Removes the execution class attribute previously associated with a client application, login, stored procedure, or default execution class for the specified scope."

Syntax updates

The definitions of the parameters have been updated:

Usage updates

Add this bullet item:

The following bullet item appears in the Usage section:

The text has been modified to read: