The following information is intended for advanced users.

Overview

The Database object provides access to information about the current database. All the Database properties are read-only; you may not change them.

You may use the Database object in Page Scripts, Static Content property values, and in Custom Page content. You may not use the Database object in Stylesheet scripts such as Theme.sss.

Using Script Statements

The script object properties and functions described on this page are typically used in User Item text or static content properties. Script statements in those locations must be delimited by "<%" and "%>":

<% text here is treated as script %>

In addition, when accessing a script object property or function, you typically use the special operator "=" to send the result to the output page:

<%=Page.PersonHREF(1)%>

Properties

All of the Database object properties are read-only.

Name

Returns the name of the database.

Memo

Returns the text of the memo associated with the database (TMG v4) or dataset (TMG v5+). In TMG v5+, the database memo is managed via File > Dataset Manager command.

Methods

The Database object has no methods.

Example

If you add the following script statement to the Main Page.Extra Content property, the dataset memo will appear in the Extra Content section:

  <%=Database.Memo%>
On This Page