Skip to main content

Disconnect

AutomatR.MSSQLDataBase.Database.Disconnect

The "Disconnect" activity in AutomatR for SQL Server databases allows you to disconnect from a specified database. This activity is crucial for releasing resources and closing the connection to the database.

Properties

NameDescription
Input
ConnectionEnter the database connection variable used for disconnecting the database connection.
Misc
DisplayNameProvides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Disconnect" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Ex.: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1.

How to use:

  1. Drag and drop the "Disconnect" activity onto the workflow.
  2. Configure the properties by specifying the database connection variable used for disconnecting.
  3. Optionally, configure the delay for synchronization purposes.
  4. Execute the workflow to disconnect from the specified database.

Example: Consider an example where the "Disconnect" activity is used to disconnect from a SQL Server database:

Disconnect:
Connection: SqlConnectionVariable

In this example, the "Disconnect" activity disconnects from the SQL Server database using the SqlConnection variable "SqlConnectionVariable." The disconnection process is executed successfully.