473,385 Members | 2,210 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Q: Check if data is changed in a SQL Table

Hi!

Sorry if I am posting this in the wrong NG.

What I want to do is to create a .NET dll that alerts my program when an
update has been commited to a specific table in my SQL Database.

Is it possible? Any directions on what to google on, links etc?

Any help would be most kindly...
Aug 12 '08 #1
3 2025
Martin,

I haven't worked on this.
However, SQLDependency is something that was introduced to achieve
this & it works with sql 2005.

HTH
Kalpesh

Aug 12 '08 #2
On Aug 12, 10:29*am, "Martin Arvidsson, Visual Systems AB"
<martin.arvids...@vsab.netwrote:
Hi!

Sorry if I am posting this in the wrong NG.

What I want to do is to create a .NET dll that alerts my program when an
update has been commited to a specific table in my SQL Database.

Is it possible? Any directions on what to google on, links etc?

Any help would be most kindly...
Apart of SQLDependency as Kalpesh mention I do not know of any other
way. You can always poll it.
We have a software that does something like that. When new data
becomes available it update a counter in a system table, and there is
a service process that holds a reference to the last checked value, if
the value in the DB is bigger, then it goes and refresh the data.
In another escenario there is a table that holds jobs references, and
there are several processes (again windows services) that are the
executers, in this case each row has a flag to indicate if the process
is being (or was) ran. and again a poll mechanism is used.
Aug 12 '08 #3
Martin Arvidsson, Visual Systems AB wrote:
Sorry if I am posting this in the wrong NG.

What I want to do is to create a .NET dll that alerts my program when an
update has been commited to a specific table in my SQL Database.

Is it possible? Any directions on what to google on, links etc?
The best would probably be if the app updating the database
or some middleware used to do it also notified your app (actually
all subscribers).

The second best would be to have the database push a notification
out to you. As already posted then SQLServer 2005 and .NET 2.0 makes
that relative easy.

The worst solution is polling.

Arne
Aug 13 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: RAD | last post by:
I am working with an evaluation copy of SQL Server 2000 for the first time; my DB experience lies with MS Access. I have a simple table in SQL Server (tblCompany) that has a field called...
7
by: JMCN | last post by:
hello i'm trying to parse out some data from the below format. first of all, i import the text file into access97 table and the try to parse out.i have a code written but when i run it, it does...
1
by: Mike P | last post by:
Can anyone give me any advice on catching data concurrency errors? I want to amend the code below so that if the record to be amended has already changed since it was taken from the table, the...
3
by: mike | last post by:
I'm writting a q&a chat application and hae a small refeshing IFRAME to check if there has been a new or modified chat item written, if so the main chat window refreshes and the datagrid gets...
2
by: John | last post by:
Hi vs2005/sql server2004. I have created a simple winform app by dragging a table on a winform. I have used stored procedures for data access. I have the following questions; 1. Using the...
18
by: Joel Hedlund | last post by:
Hi! The question of type checking/enforcing has bothered me for a while, and since this newsgroup has a wealth of competence subscribed to it, I figured this would be a great way of learning...
16
by: Brian Tkatch | last post by:
Is there a way to check the order in which SET INTEGRITY needs to be applied? This would be for a script with a dynamic list of TABLEs. B.
5
by: WombatDeath | last post by:
Hi, I want my application to audit any data changes (update, insert, delete) made by the users. Rather than have an audit table mirroring each user table, I'd prefer to have a generic structure...
10
by: Cliff72 | last post by:
Is there a way in VBA to check if a linked table in the database has been updated? Example: I have a table "LedgerTemp" which is a direct link to a text file on the LAN "Ledger.txt" This text...
6
by: insirawali | last post by:
Hi all, I have this problem, i need to know is there a way i cn use the data adapter's update method in this scenario. i have 3 tables as below create table table1{ id1 int identity(1,1)...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.