Native
Synchronous
No Custom Parameters
FormatDSN constructs a database connection string using the specified arguments for a particular database type.
FormatDSN is used to create a database connection string, which can then be subsequently used in DSN in the OpenDatabase action.
This action does not communicate with a database. It is only used to format the database connection string.
Currently, the only supported database type is mysql.
| Parameter Name | .NET Type | Default | Description |
|---|---|---|---|
| Type * | Metreos.Utilities.Database+DbType | oracle | The type of database to connect to. The following are the possible values:
|
| DatabaseName * | System.String | The name of the database. | |
| Server * | System.String | The IP address or host name of the database. | |
| Port | System.UInt16 | 3306 | The port of the database. |
| Username * | System.String | The username with the correct permissions to open the database connection and perform the necessary SQL statements for this script. | |
| Password * | System.String | The password for the user specified in Username. | |
| Pooling | System.Boolean | true | Whether to pool the connection. The default of true is typically recommended. |
| ConnectionTimeout | System.UInt32 | 0 | The amount of time to wait before canceling the attempt to open the database connection. |
| Parameter Name | .NET Type | Description |
|---|---|---|
| DSN | System.String | The formatted database connection string. |
Branch Conditions
No description.
No description.