Bearbeiten

Freigeben über


Database.SetDefaultTableConnection(TableConnectionType, Text [, Boolean]) Method

Version: Available or changed with runtime version 1.0.

Establishes a connection to an external database based on a previously registered connection of the specified type.

Syntax

 Database.SetDefaultTableConnection(Type: TableConnectionType, Name: Text [, Scoped: Boolean])

Note

This method can be invoked without specifying the data type name.

Parameters

Type
 Type: TableConnectionType
The type of table connection as defined in the TableType property.

Name
 Type: Text
The name of the external table connection. You must already have registered a table connection with this name.

[Optional] Scoped
 Type: Boolean
If true, when the method ends where you have used SETDEFAULTTABLECONNECTION, the default table connection returns to the value it had before. Use the Scope parameter when you want to use a specific table connection for a specific task and then return to the normal configuration.

Database Data Type
Get Started with AL
Developing Extensions