IBDAC

TIBCConnection.Database Property

Used to set the name of the database to associate with TIBCConnection component.

Class

TIBCConnection

Syntax

property Database: string;

Remarks

Use the Database property to set the name of the database to associate with TIBCConnection component. For local InterBase databases it is a filename. For remote databases use following syntax.

To connect to an InterBase database on a remote server using TCP/IP the syntax is <server_name>:<filename>.

To connect to an InterBase database on a remote server using NetBEUI, the syntax is: \\<server_name>\<filename>.

To connect to an InterBase database on a remote server using SPX, the syntax is: <server_name>@<filename>.

Note: You can set connection parameters not only by Database property. You can use Server property to set server name and Options property to set connection protocol. If Database property contains local filename and server property is empty, it will be a local connection. If Server property is not empty, Server and Options properties will be used for the connection. If both Database and Server property contain server name and they are the same, server name and connection protocol will be taken from the Database property. If they are not the same, the server name and connection protocol will be taken from Server and Options properties and entire string of Database property will be processed as a database name without server name. In that case you may encounter errors.

See Also

© 1997-2022 Devart. All Rights Reserved. Request Support DAC Forum Provide Feedback