FORMULA LANGUAGE


@DB2Schema
Example

Given the name of a database as a text string, returns a text string containing the DB2 schema of that database if it is a db2nsf database or the empty string if it is not a db2nsf database.

Note This @function is new with Release 7.

Syntax

@DB2Schema( server : file )

@DB2Schema( server ; replicaID )

Parameters

server


file
replicaID
Return value

schema

Usage

@DB2Schema is intended to be used with Query Views, where a DB2 SQL query returns a result set for display. This SQL query is an evaluated formula, and may incorporate @functions in the query formula, the evaluation of which results in the text string of the SQL executed in DB2. To SELECT from a Domino Access View (DAV) within the current db2nsf's schema, the DAV table must be qualified by the schema name. Otherwise, DB2 uses the accessing user's name as the schema name. @DB2Schema allows the schema name to be dynamically specified within a query formula.

This function also works in all contexts where @function use is supported, including view selection formulas, and column formulas.

Example
See Also