<@CONNECTIONS
[DSN=datasourcename]
[TYPE=ODBC|DAM|FileMaker|Oracle|DLL|CommandLine|Java|
AppleEvent|Mail]
[ENCODING=encoding] [{array
attributes}]>
The <@CONNECTIONS> meta tag provides information about each data source object currently in use by Tango Server. Tango Server considers External action connections and Mail action connections to be data sources, so information on these actions is also returned.
<@CONNECTIONS> returns a two-dimensional array with one row for each data source object (the optional attributes may be used to restrict the data source, External action, or Mail action information returned by the meta tag). Usually, data source objects represent connections. However, in some situations, Tango Server shares a single database connection between multiple data source objects. In this case, the returned NumConnections value displays the total number of shared connections.
The optional DSN attribute is used to restrict the information returned to that from data sources, External actions, or Mail actions with the specified name. If omitted, information for all data sources, External actions, or Mail actions is returned. If an invalid name is specified, an error is returned.
The optional TYPE attribute is used to restrict the information returned to data sources with the specified type, External actions of the specified type, or Mail actions. The type must be one of the listed values. If omitted, information for all data source types, External actions, and Mail actions is returned. If an invalid type is specified, an error is returned.
There are array-returning attributes that can be used to specify prefixes and suffixes for the returned array, rows within the array, and columns within the rows. They are described in the section Array-to-Text Conversion Attributes. By default, the returned array is formatted as an HTML table.
For more information on External actions and Mail actions, see Chapter 15 and Chapter 16 of the User's Guide.
Mail and External actions are treated as data sources by Tango Server. Specifying DLL (DLL-type External action), CommandLine (command-line External action), Java (Java External action), AppleEvent (AppleEvent External action), or Mail (Mail action) in the TYPE attribute returns information on these actions.
<@CONNECTIONS> returns a two-dimensional array, containing the following columns:
Note: Row 0 of the array
returned by <@CONNECTIONS> contains the column titles listed in
the Category column of the above table. You can return the category names by
using the following meta tags:
<@ASSIGN local$tempArray value=<@CONNECTIONS>>
Returns a two-dimensional array listing all open connections for all data sources.
Returns a two-column array listing all open ODBC data sources.
Array-to-Text
Conversion Attributes
Encoding Attribute
<@CUSTOMTAGS>
Copyright © 1999, Pervasive Software. All rights reserved.