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.