Updates a database table via Bulk operations of the specific database driver. Falls back to Insert Data Table if the database driver does not support Bulk operations.
Arguments
| Name | Dir | Type | Req | Default | Description |
|---|---|---|---|---|---|
| TableName | In | InArgument<String> |
✓ | ||
| DataTable | In | InArgument<Data.DataTable> |
✓ | ||
| AffectedRecords | Out | OutArgument<Int64> |
|||
| ProviderName | In | InArgument<String> |
|||
| ConnectionString | In | InArgument<String> |
|||
| ConnectionSecureString | In | InArgument<Security.SecureString> |
|||
| ExistingDbConnection | In | InArgument<UiPath.Database.DatabaseConnection> |
|||
| ContinueOnError | In | InArgument<Boolean> |
Updates a compatible DataTable in an existing database table. The activity also updates all the columns that are not in the collection of column names used as a primary key. Returns the number of rows affected.
Arguments
| Name | Dir | Type | Req | Default | Description |
|---|---|---|---|---|---|
| TableName | In | InArgument<String> |
✓ | ||
| DataTable | In | InArgument<Data.DataTable> |
✓ | ||
| ColumnNames | In | InArgument<String[]> |
✓ | ||
| AffectedRecords | Out | OutArgument<Int64> |
|||
| ProviderName | In | InArgument<String> |
|||
| ConnectionString | In | InArgument<String> |
|||
| ConnectionSecureString | In | InArgument<Security.SecureString> |
|||
| ExistingDbConnection | In | InArgument<UiPath.Database.DatabaseConnection> |
|||
| ContinueOnError | In | InArgument<Boolean> |
Properties
| Name | Kind | Type | Description |
|---|---|---|---|
| BulkUpdateFlag | property | Boolean |
Connects to a database by using a standard connection string
Arguments
| Name | Dir | Type | Req | Default | Description |
|---|---|---|---|---|---|
| ProviderName | In | InArgument<String> |
✓ | ||
| ConnectionString | In | InArgument<String> |
✓ | ||
| ConnectionSecureString | In | InArgument<Security.SecureString> |
✓ | ||
| DatabaseConnection | Out | OutArgument<UiPath.Database.DatabaseConnection> |
Closes a connection to a database
Arguments
| Name | Dir | Type | Req | Default | Description |
|---|---|---|---|---|---|
| DatabaseConnection | In | InArgument<UiPath.Database.DatabaseConnection> |
✓ |
Connects to a database and features a Sequence which can perform multiple transactions with the database. It returns a DatabaseConnection variable, providing a scope for Database activities. If UseTransaction is set to True, the contained operations are executed in a single transaction, and applied at the end if none of the them failed. If UseTransaction is set to False, all operations are committed individually. When this activity ends, the connection to the database is closed.
Arguments
| Name | Dir | Type | Req | Default | Description |
|---|---|---|---|---|---|
| ProviderName | In | InArgument<String> |
|||
| ConnectionString | In | InArgument<String> |
|||
| ConnectionSecureString | In | InArgument<Security.SecureString> |
|||
| ExistingDbConnection | In | InArgument<UiPath.Database.DatabaseConnection> |
|||
| ContinueOnError | In | InArgument<Boolean> |
|||
| DatabaseConnection | Out | OutArgument<UiPath.Database.DatabaseConnection> |
Properties
| Name | Kind | Type | Description |
|---|---|---|---|
| UseTransaction | property | Boolean |
Executes an SQL statement on a database. For UPDATE, INSERT, and DELETE statements, the return value is the number of rows affected by the command. For all other types of statements, the return value is -1.
Arguments
| Name | Dir | Type | Req | Default | Description |
|---|---|---|---|---|---|
| Sql | In | InArgument<String> |
✓ | ||
| AffectedRecords | Out | OutArgument<Int32> |
|||
| ProviderName | In | InArgument<String> |
|||
| ConnectionString | In | InArgument<String> |
|||
| ConnectionSecureString | In | InArgument<Security.SecureString> |
|||
| ExistingDbConnection | In | InArgument<UiPath.Database.DatabaseConnection> |
|||
| ContinueOnError | In | InArgument<Boolean> |
|||
| TimeoutMS | In | InArgument<Int32> |
Properties
| Name | Kind | Type | Description |
|---|---|---|---|
| CommandType | property | Data.CommandType |
|
| Parameters | property | Dictionary<String, Argument> |
Executes a query on a database and returns the query result as a Data Table
Arguments
| Name | Dir | Type | Req | Default | Description |
|---|---|---|---|---|---|
| Sql | In | InArgument<String> |
✓ | ||
| DataTable | Out | OutArgument<Data.DataTable> |
|||
| ProviderName | In | InArgument<String> |
|||
| ConnectionString | In | InArgument<String> |
|||
| ConnectionSecureString | In | InArgument<Security.SecureString> |
|||
| ExistingDbConnection | In | InArgument<UiPath.Database.DatabaseConnection> |
|||
| ContinueOnError | In | InArgument<Boolean> |
|||
| TimeoutMS | In | InArgument<Int32> |
Properties
| Name | Kind | Type | Description |
|---|---|---|---|
| CommandType | property | Data.CommandType |
|
| Parameters | property | Dictionary<String, Argument> |
Inserts a compatible DataTable in an existing database table. Returns the number of rows affected.
Arguments
| Name | Dir | Type | Req | Default | Description |
|---|---|---|---|---|---|
| TableName | In | InArgument<String> |
✓ | ||
| DataTable | In | InArgument<Data.DataTable> |
✓ | ||
| AffectedRecords | Out | OutArgument<Int32> |
|||
| ProviderName | In | InArgument<String> |
|||
| ConnectionString | In | InArgument<String> |
|||
| ConnectionSecureString | In | InArgument<Security.SecureString> |
|||
| ExistingDbConnection | In | InArgument<UiPath.Database.DatabaseConnection> |
|||
| ContinueOnError | In | InArgument<Boolean> |