sp_mda


Description

Returns server metadata.


Syntax

sp_mda parm1, parm2, parm3


Parameters

parm1 is a required parameter that indicates the client type. There are three valid values: 0, 1, or 2.

parm2 is a required parameter that indicates the client request for sp_mda version to be returned. This parameter is not currently used by SYOSPMDA, and the MDAVERSION metadata is actually returned as a result of parm1. The valid values for parm2 are 0 and 1.

parm3 is an optional parameter that indicates the client version. This parameter is not currently used by SYOSPMDA. The range of valid values is 0-9.


Usage

Results

The metadata returned consists of three columns:

The MDINFO column indicates the metadata attribute name.

The QUERYTYPE column indicates how the QUERY column should be treated. The range of valid values is as follows:

The QUERY column is a 255-byte varchar field containing either:

Table 6-12 illustrates use and return values for sp_mda:

1>exec sp_mda 0,3 2>go

Table 6-12: Result set for sp_mda

MDINFO

QUERYTYPE

QUERY

MDARELEASED

6

DirectConnect QTS 220842

MDAVERSION

5

7