[TOC] [Prev] [Next] [Bottom]



<@DBMS>

Syntax

<@DBMS [ENCODING=encoding]>

Description

Returns the concatenated name and version of the database used by the current action's data source.

If the current action has no data source, the meta tag returns the information for the most recent data source used during the current execution of the application file. If used prior to the execution of a database-related action, this tag returns an empty string.

Tango Enterprise only: This tag is useful in Direct DBMS actions where you may want to execute different SQL depending on which DBMS is in use.

The exact values returned by this meta tag depend on values returned by the current database driver and/or server software.

Example

<@IFEQUAL VALUE1="<@DBMS> VALUE2="ORACLE*:>
SQL to execute only if we are connected to an Oracle data source.
</@IF>

This example from a Direct DMBS action is used to specify the SQL to execute when an Oracle data source is assigned to the action.

See Also

<@DSTYPE>
Encoding Attribute



[TOC] [Prev] [Next] [Bottom]



docs@pervasive.com

Copyright © 1998, Pervasive Software Inc. All rights reserved.