473,409 Members | 2,022 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,409 software developers and data experts.

SQL Server's Data Change Notification

Well, there are a couple ways you could do that.

You could write a windows service with a
System.Timers.Timer object, that fires an event ever 15
minutes. Or, you could use a trigger on the table you are
evaluating. On update for your table, your trigger fires
executing a piece of code that could be a SQL job, or an
actual executable you had written in VB or VB.net. The
easiest programatic way would probably be the service
though.

Cheers...

-----Original Message-----
I am writing a little vb/vb.net application to check every15 minutes if a record or certain records have changed in
a specific table, If record/records have changed then getthe index of that record. What is the best way to
accomplish this task? Any ideas or source code samples
would be highly appreciated.

I am using vb.net with SQL Server 2000, vb6 is also
available to me.
Thanks
.

Jul 19 '05 #1
2 9747
-----Original Message-----
Well, there are a couple ways you could do that.

You could write a windows service with a
System.Timers.Timer object, that fires an event ever 15
minutes. Or, you could use a trigger on the table you are
evaluating. On update for your table, your trigger fires
executing a piece of code that could be a SQL job, or an
actual executable you had written in VB or VB.net. The
easiest programatic way would probably be the service
though.

Cheers...

-----Original Message-----
I am writing a little vb/vb.net application to check

every
15 minutes if a record or certain records have changed ina specific table, If record/records have changed then

get
the index of that record. What is the best way to
accomplish this task? Any ideas or source code samples
would be highly appreciated.

I am using vb.net with SQL Server 2000, vb6 is also
available to me.
Thanks
.

.
Thanks for you reply.

Yes, I am writing this process using Windows Servce and
using Update Trigger, how do I know which record has
changes?
Jul 19 '05 #2
The most easy way is to create a table and inset in it a record index and
change time on trigger event.
Then your service can red this table and empty it, or keep it and just
select after particuar time.

Code can look like:
CREATE TRIGGER watchTrigger
ON <table_name, sysname, pubs.dbo.sales>
FOR INSERT, UPDATE
AS
BEGIN
insert watchTable ([ID], ChangeTime) select [ID], getdate() from inserted
END
GO
"Mo Quamar" <mq*****@cprk.com> wrote in message
news:03****************************@phx.gbl...
-----Original Message-----
Well, there are a couple ways you could do that.

You could write a windows service with a
System.Timers.Timer object, that fires an event ever 15
minutes. Or, you could use a trigger on the table you are
evaluating. On update for your table, your trigger fires
executing a piece of code that could be a SQL job, or an
actual executable you had written in VB or VB.net. The
easiest programatic way would probably be the service
though.

Cheers...

-----Original Message-----
I am writing a little vb/vb.net application to check

every
15 minutes if a record or certain records have changed ina specific table, If record/records have changed then

get
the index of that record. What is the best way to
accomplish this task? Any ideas or source code samples
would be highly appreciated.

I am using vb.net with SQL Server 2000, vb6 is also
available to me.
Thanks
.

.
Thanks for you reply.

Yes, I am writing this process using Windows Servce and
using Update Trigger, how do I know which record has
changes?

Jul 19 '05 #3

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

Similar topics

3
by: Salina | last post by:
I am new in C#.Net and going to write a window client/server application. my database is mysql and the data will update every min. what i need to do is push the up-to-date data to clients from...
2
by: Mo Quamar | last post by:
I am writing a little vb/vb.net application to check every 15 minutes if a record or certain records have changed in a specific table, If record/records have changed then get the index of that...
9
by: Alessandro | last post by:
When I build a setup project under vb2005, starts "Microsoft sql server 2005 Tool" showing "Please wait while windows configures Microsoft sql server 2005 tools" Then it stop with this message:...
5
by: zxo102 | last post by:
Hi, I am doing a small project using socket server and thread in python. This is first time for me to use socket and thread things. Here is my case. I have 20 socket clients. Each client send a...
2
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of...
1
by: Ryan | last post by:
I am trying to log events to SQL Server instead of the computers event log, but, although I get no errors, I have no luck. The webevents_events table is empty. I have a custom event that I am...
4
by: Rick | last post by:
I developing a large project that will have numerous text boxes, datetime controls, checkboxes etc. all data bound to a dataset/datatable/tableadapter. I'm wondering what is the normal way to...
2
by: Toni | last post by:
Hello! I'm trying to use ASP.NET caching with my web site and SQL Server, but I have a problem. I try to do everything according to the instructions like this page here:...
0
by: Toni | last post by:
Hello! I'm trying to get caching work with ASP.NET 2.0 and SQL Server Express Edition 2005, but I have a problem and I can't figure out what I'm still doing wrong. I have enabled the database...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.