Subject Re: [IBO] Updating master detail tables - 2nd post
Author Daniel Rail
Hi,

At May-31-11, 4:26 AM, Svein Erling Tysvær wrote:

> I think she meant that she thinks you're doing something like:

> TIB_Connection1.Connect;
> TIB_Connection1.Username:=...

> and you cannot change username or password when you're already
> connected. Actually, I don't think it has to be username or password
> that is changing, I think it can also be that you try to change the
> name of the database, maybe even the name of a database belonging to
> a started transaction (at least I doubt it is possible to close a
> connection whilst its transaction is running).

> You have to find the exact place in your code that causes the
> error, this kind of showstoppers luckily tend to be relatively easy
> to locate (and easy to understand why gives this error once you find the exact line).

It might also be that TIB_Connection.Connected := True at compile
time, and then trying to change the server and path at runtime.

--
Best regards,
Daniel Rail
Senior Software Developer
ACCRA Solutions Inc. (www.accra.ca)
ACCRA Med Software Inc. (www.filopto.com)