Description |
Opens a database connection using the specified custom connection string or predefined connection string. The connection is identified by a unique session name, which can be referenced by subsequent SQL steps. This allows multiple SQL connections to run simultaneously. Also provides the option to create and name a new pre-defined connection string that can be used in subsequent steps and Workflows. |
Practical Use |
Used to establish a persistent connection for other Database steps. |
Declaration |
<AMSQLOPENCONNECTION CONNECTIONSTRING="Text" PREDEFINEDCONNECTION="MyPreDefinedConn" /> |
Examples |
<AMSQLOPENCONNECTION CONNECTIONSTRING="AM19y9I4LjuL6WguODTn8/bbnUTt4T7/MaI+H6MBnYGRI69B6ya5BxTt32MGksD0w8XqvTNi3YyQwIsWCXLeCLQJdBjCzJFhKavzojej+o1zcu/FJ/gAVr45Q==aME" /> <AMSQLOPENCONNECTION PREDEFINEDCONNECTION="MyPredefinedConn" /> |
General Tab Parameters |
Session Name: Specifies the session name to identify this connection request in subsequent SQL steps. This allows several connections to be active simultaneously. If you are only using one connection at a time, do not specify a value other than the default. Text, Optional - Default "SQLSession1" Connection String Text, Optional Connection String Text, Optional |
Advanced Tab Parameters |
Time Out After: Specifies the amount of seconds to attempt to establish a connection before timing out at the server level. Number, Optional Default - 0 Prompt User for Name and Password: Specifies that the user should be prompted with a username and password for the database server each time the Workflow is run. Yes/No, Optional - Default - NO |