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
405 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 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Error running webpage local computer 7 36
Json and ajax 1 44
Disable the weekends on datepicker control 6 52
bulk load multiple users for aspnetusers table 2 15
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org Go to that link and select download selenium in the right hand columnThat will then direct you to their download page.From that page s…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.

751 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