Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
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
Medium Priority
?
416 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 1

Accepted Solution

by:
chgtj001 earned 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.
Suggested Courses

722 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