Share via


REGISTERTABLECONNECTION Function (Database)

Registers a table connection between Microsoft Dynamics NAV and an external database.

REGISTERTABLECONNECTION(Type, Name, Connection)

Parameters

  • Type
    Type: TableConnectionType Specifies the type of table connection as defined in the TableType property.
  • Name
    Type: Text Specifies the name of the connection in your code, or the name of the primary key field on the table.
  • Connection
    Type: Text Specifies the connection to the external database, such as 'Data Source=ProdServer1;Initial Catalog=ProdDb1;User ID=sqladmin;Password=p@ssword'). Alternatively, define the connection in a separate function.

See Also

Reference

TableConnectionType Data Type
UNREGISTERTABLECONNECTION Function (Database)

Concepts

External Tables