procedure CreateDBDSN(Name : String; DSN : String; username : String; Password : String; ConnCount : Integer);

Class IHL7ConnectKernel

Create a database connection pool using an ODBC DSN.

The name you provide must be unique for the instance of HL7Connect. You will need to use the name in a GetDB call to actually use the database. The database will be listed in the internal logging page.

You must specify a valid DSN, Username, and Password. On Windows NT/2000 you will need a system DSN. If there is a problem with the database access requested, an exception will be raised.

If ConnCount is supplied it is the maximum number of connections that the connection pool will allow.

It is recommended that database connection pools be created in the OnKernelStart event, but you can create them on the fly as required.


© Kestral Computing P/L 2000 - 2003. HL7Connect v2.00-063 generated on 30-Nov 2015.
Keywords: CreateDBDSN