Page 1 of 1

Closed connection Opens without being called

Posted: Tue 16 Dec 2008 00:30
by Dokkie
Using FB2.1 (not embedded) D2009 Windows XP SP3.
I have a datamodule with a connection and two transaction components. One transaction component is for Reading only the second for Updating the Database.
The connection component has the UserName and password hardcoded - temporarily while I develop the application.

Have several tables attached to the connection and the transactions.

The connection component is closed when the application starts. When I Open a table component (without explicitly Opening the connection) the connection opens - is this expected? I assumed that Opening a table without an open connection would fail.

Posted: Tue 16 Dec 2008 09:45
by Plash
This is the designed behaviour. The connection is opened automatically when a table or query is opened.