As far as I can tell, SQLDepedency is just a high level wrapper around SQL Server Query Notifications - you could (if someone hasn't done it already) create such a high level wrapper yourself, or just build what you need on the core services themselves. Instead of Google'ing "SQLDependency", try instead "SQL Server Query Notification".<br>
<br>These articles in particular may be useful:<br><br><a href="http://msdn.microsoft.com/en-us/library/ms130764.aspx">http://msdn.microsoft.com/en-us/library/ms130764.aspx</a><div><a href="http://www.simple-talk.com/sql/t-sql-programming/using-and-monitoring-sql-2005-query-notification/">http://www.simple-talk.com/sql/t-sql-programming/using-and-monitoring-sql-2005-query-notification/</a><br>
<br>You will note that there is quite a bit of infrastructure required in the DB itself to get this stuff up and running and there are some quite specific conditions that have to be met by the query itself - it's not just a case of "notify me about this query". At the very least you need a queue and Service Broker to be running. Whether you are in a position to put that infrastructure in place may determine whether or not this approach is even viable in your case.<br>
<br><br>hth</div><div><br><br><br><br><div class="gmail_quote">On 3 April 2012 02:33, Jackson Gomes <span dir="ltr"><<a href="mailto:jfdmg@hotmail.com">jfdmg@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div dir="ltr">
you may try CrossTalk, which allows you to import .NET classes and Libs and use them on Delphi<div><br></div><div><a href="http://www.atozed.com/crosstalk/index.en.aspx" target="_blank">http://www.atozed.com/crosstalk/index.en.aspx</a> <br>
<br><div><div></div><hr>Date: Mon, 2 Apr 2012 11:49:25 +1200<br>From: <a href="mailto:Dave@iccs.co.nz" target="_blank">Dave@iccs.co.nz</a><br>To: <a href="mailto:delphi@listserver.123.net.nz" target="_blank">delphi@listserver.123.net.nz</a><br>
Subject: [DUG] SqlDependency<div><div class="h5"><br><br>
<div><div><p><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I would like to get SQL Server (2008 R2) to notify my app when data in a table changes.</span></p><p><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I’m looking for something like the SqlDependency class in .net, but for an XE2 VCL (Pascal) app.</span></p>
<p><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Does anyone know of a component, class, or way to replicate this (Not .net)?</span></p><p><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p>
<p><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Cheers,</span></p><p><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Dave.</span></p>
</div></div><br></div></div>_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: <a href="mailto:delphi@listserver.123.net.nz" target="_blank">delphi@listserver.123.net.nz</a>
Admin: <a href="http://delphi.org.nz/mailman/listinfo/delphi" target="_blank">http://delphi.org.nz/mailman/listinfo/delphi</a>
Unsubscribe: send an email to <a href="mailto:delphi-request@listserver.123.net.nz" target="_blank">delphi-request@listserver.123.net.nz</a> with Subject: unsubscribe</div></div>                                            </div></div>
<br>_______________________________________________<br>
NZ Borland Developers Group - Delphi mailing list<br>
Post: <a href="mailto:delphi@listserver.123.net.nz">delphi@listserver.123.net.nz</a><br>
Admin: <a href="http://delphi.org.nz/mailman/listinfo/delphi" target="_blank">http://delphi.org.nz/mailman/listinfo/delphi</a><br>
Unsubscribe: send an email to <a href="mailto:delphi-request@listserver.123.net.nz">delphi-request@listserver.123.net.nz</a> with Subject: unsubscribe<br></blockquote></div><br></div>