cancel
Showing results for 
Search instead for 
Did you mean: 

How do I display a Windows 7 system tray icon for a dbsrv16 service?

Breck_Carter
Participant
4,944

Over the years efforts have been made (dbsrv16 -q options) to satisfy the OPPOSITE request (turn OFF the icon, console window, etcetera).

However... a power user in complete control of their own computer might want to (a) start dbsrv16.exe as a service because, well, it's convenient, (b) know that the engine is running by the presence of an icon in the system tray and (c) have access to the engine by clicking on the system tray icon.

So... what can I do to get/build/create such an icon for a dbsrv16 service?

Something involving dbconsole perchance?

Accepted Solutions (0)

Answers (1)

Answers (1)

jeff_albion
Product and Topic Expert
Product and Topic Expert

I should mention that the SQL Anywhere Monitor does have a system tray icon, which only launches the full web console - there is nothing to indicate service status of monitored databases or directly access the database console window though.


To me, this looks like an potential enhancement request to add a system tray icon to dbconsole, like Interactive SQL and Sybase Central already have...

The first enhancement would be to allow dbconsole to minimize to the system tray - I don't think that's currently possible. The enhancement could also include a feature that if it does start and connect, the system tray icon is there with a 'green' status, if not, maybe a 'red' disconnected icon if dbconsole is started in special 'client service' mode. Otherwise, prompt for the corrected connection information as it does currently today. We could continue the enhancement so dbbconsole could also be enhanced to be setup to periodically automatically attempt a re-connect to the server with the current connection information if it does gets disconnected in the 'client service' mode.

This still would not directly address c), but that is still a limitation of Windows' session handling - a client connection to remotely monitor the current database log/process is about the best you can hope for in this situation. You can't directly access any of the process information (aside from the PID) so you wouldn't be able to 'directly' read any of the configuration information from the server.


Would such an enhancement to dbconsole be at all useful for this situation (for Breck, or others)? If so, I will put in an enhancement request to be further considered in a potential future version of SQL Anywhere.

Breck_Carter
Participant
0 Kudos

Yes, please... especially if it maintained the one-system-tray-icon-per-running-engine-instance, because the existence of system tray icons becomes ESPECIALLY important when the power user has multiple engines running ("I see six icons, where's number seven?")

[insert standard argument for running all databases on one server here]

[insert definition of "power user" here to counter the standard argument]

Methinks that dbconsole is rather [cough] heavyweight for this requirement, like using your own private A320 Airbus for weekend trips, but hey? Who DOESN'T want to be Sultan of Brunei? 🙂

Breck_Carter
Participant
0 Kudos

Speaking of royalty . . . I know, feeble segue, but funny . . .

alt text

jeff_albion
Product and Topic Expert
Product and Topic Expert
0 Kudos

I think it's fair to expect this would be a one dbconsole per server since that is how it works today.

I have opened CR #741715 for this enhancement request. Thank you for the enhancement suggestion.

VolkerBarth
Contributor
0 Kudos

Hm, 7 dbconsole instances running on a box with 7 database servers - call it a continuous stress test for database performance:)

Breck_Carter
Participant
0 Kudos

oops... I projected Monitor functionality onto dbconsole... "why can't my car fly? it has wheels like a plane" 🙂