Share via


SETDEFAULTTABLECONNECTION Function (Database)

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

Syntax

SETDEFAULTCONNECTIONTYPE(Type, Name, Scope)  

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.

Scope
Type: Boolean

If true, when the function 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.

See Also

TableType Property
TableConnectionType Data Type
GETDEFAULTTABLECONNECTION Function (Database)
REGISTERTABLECONNECTION Function (Database)
UNREGISTERTABLECONNECTION Function (Database)
External Tables