Solved

Best way to connect(notify) to an existing Delphi desktop application that will now be deployed on a server

Posted on 2008-10-15
1
401 Views
Last Modified: 2013-11-23
I have an application that connects to an SQL server, gets articles and associated data then creates HTML files. Now I want to use this app on windows server 2008. I am using an ASP.NET application to write and update articles to the SQL server.
Any ideas on how to notify the Desktop app that a new article has been added or updated on the sql server?
Just setting one flag is enough like updateavailable:=true . How would I communicate the state of this flag to the delphi app. TCP? CGI?
thanks
0
Comment
Question by:Alavna
1 Comment
 
LVL 1

Accepted Solution

by:
chgtj001 earned 500 total points
ID: 22728234
The simplest way is to create a timer in your delphi application, and query the flag in the database every a few minutes. The limitation is that it may delay a few minutes when an update is commited.

Another solution is using Sql server notication service. You can write a .net client if you are using delphi.net.  Here is a tutorial for writing a c# client.
http://9tutorials.com/2007/05/10/implementing-sql-server-2005-query-notifications-in-c-windows-application.html
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question