Link to home
Start Free TrialLog in
Avatar of mahalakshmi_s
mahalakshmi_s

asked on

how automatic shutdown ?

Hi,
Currently a user has reported there stand alone database connection does not shut down upon exiting our application. I verified that the automatically shut down database option is checked in the ODBC configuration.
DB icon can still been in the task bar.

How can I make db shut down automatically while exiting application. I have PowerBuilder10 n Adaptive Server Anywhere7.

Thanks
Maha
Avatar of sajuks
sajuks

In your application close event , ;ve a code liLe
if isvalid(sqlca) disconnect using sqlca;
//this assumes that ur 'ving sqlca as ur transaction object.
Note that if u've started it as a service it will remain in the taskbar ( as it should ).
Avatar of mahalakshmi_s

ASKER

thanks for ur response..guess u r the only one in PB section...
cld u pls explain me further ? how can i shut down n remove the service from task bar ? need more explanation pls or give me some link if u cant type.

tq
M
working on it ....
ASKER CERTIFIED SOLUTION
Avatar of diasroshan
diasroshan
Flag of Kuwait image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Rosh,
Tq for ur help. Will work it on today n get back to u.
M