Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread ServerEngine.OnBeforeStop and queries to DB
Mon, Apr 15 2019 3:40 AMPermanent Link

Yusuf Zorlu

MicrotronX - Speditionssoftware vom Profi

Hello,

what is the best way to access some db-tables in ServerEngine.OnBeforeStop. Is there a "Session" for Server itself or can we use the global SESSION?

As i see, the global SESSION is not connected, so we need to set LoginUser and LoginPassword and Connected to TRUE to be able to query some database-Objects.

Is this the correct way, anyone doing it different?

Yusuf Zorlu
MicrotronX
Wed, Apr 17 2019 2:53 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Yusuf,

<< what is the best way to access some db-tables in ServerEngine.OnBeforeStop. Is there a "Session" for Server itself or can we use the global SESSION? >>

Yes, you can use the global session.  Any type of database activity that you perform *within* the EDB Server is essentially the same as local access from within a client application.

<< As i see, the global SESSION is not connected, so we need to set LoginUser and LoginPassword and Connected to TRUE to be able to query some database-Objects. >>

Correct.

Tim Young
Elevate Software
www.elevatesoft.com
Image