Article View: alt.pl.comp.lang.csharp
Article #21788SqlDependency i Notification Services
From: GrzybSon
Date: Mon, 18 Oct 2010 12:00
Date: Mon, 18 Oct 2010 12:00
14 lines
1430 bytes
1430 bytes
Witam, bawię się MS SQL Notification Services poprzez klasę SqlDependency i wszystko fajnie działa z tym, że oprócz informacji, że w tabeli powstał nowy insert, update, delete to chciałbym znać np. id zmienionego rekordu, ostatnio dodanego. Jak to załatwić? Czy da się to zrobić poprzez SqlDependency czy mam zakładać trigera na monitorowanej tabeli, który zapisze mi te potrzebne informacje do specjalnej tabeli z logami. -- Pozdro, Maćko
Technical Details
Message-ID:
<i9hct5$umg$1@news.onet.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.nask.pl!news.nask.org.pl!news.onet.pl!not-for-mailShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.nask.pl!news.nask.org.pl!news.onet.pl!not-for-mail From: "GrzybSon" <grzybson@poczta.fm> Newsgroups: alt.pl.comp.lang.csharp Subject: SqlDependency i Notification Services Date: Mon, 18 Oct 2010 14:00:36 +0200 Organization: http://onet.pl Lines: 16 Message-ID: <i9hct5$umg$1@news.onet.pl> NNTP-Posting-Host: 62-121-97-180.home.aster.pl X-Trace: news.onet.pl 1287403237 31440 62.121.97.180 (18 Oct 2010 12:00:37 GMT) X-Complaints-To: niusy@onet.pl NNTP-Posting-Date: Mon, 18 Oct 2010 12:00:37 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5512 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512 X-Antivirus: avast! (VPS 101018-0, 2010-10-18), Outbound message X-Antivirus-Status: Clean MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit