SDAC

TCustomDAConnection.Connect Method

Establishes a connection to the server.

Class

TCustomDAConnection

Syntax

procedure Connect; overload;procedure Connect(const ConnectString: string); overload;

Remarks

Call the Connect method to establish a connection to the server. Connect sets the Connected property to True. If LoginPrompt is True, Connect prompts user for login information as required by the server, or otherwise tries to establish a connection using values provided in the Username, Password, and Server properties.

Note, if you would like to use SDAC in service, console or just at a separate thread, you need to call CoInitialize for each thread. Also remember to call CoUnInitialize at the end of a thread.

See Also

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