| THE META-HTML LANGUAGE REFERENCE MANUAL

| [TOC] |

## Manual Page Viewer

Name: MSQL::WITH-OPEN-DATABASE

Section: Msql Database Extensions

Synopsis:

`<msql::with-open-database DBVAR [DSN=DSN] [DATABASE=DBNAME] [HOST=HOSTNAME]>
%body
</msql::with-open-database>`

Description:

Create an environment in which other MSQL database commands can be given. First, the database referenced by DBNAME is locked and opened, and the resultant database handle is bound to the variable named by DBVAR. Then, the BODY code is executed. Finally, the database is closed, and further references to DBVAR are meaningless.

Example:

     <msql::with-open-database rdb database=rolodex
    			    host=localhost>
    ...
    </msql::with-open-database>

For compatibility with ODBC, the host/database information can optionally be given in a ODBC style DSN string.

    DSN="host=localhost;database=rolodex"

Edit Pointer
Function Index
Variable Index
Variable Editor

The META-HTML Reference Manual V1.4 Copyright © 1995, 1996, Brian J. Fox, 1996, 1997 Universal Access Inc.
Found a bug? Send mail to bug-manual@metahtml.com