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

detect changes in database

I have an application that is used by multiple people. They all see the same
table contents from a sql-db. If a user adds/changes or removes a record the
other users must refresh there dataset manually to see the changes. How can I
make my application aware of db-changes automaticly so that the users don't
have to manually refresh the screen.

Thanks,
Frank
Dec 2 '05 #1
3 3236
The most easiest way should be a timer. Use the OnTick event to read
from the database. Now you can just refrech automaticaly your form by
calling the function or sub that you use, to update manually.

Dec 2 '05 #2

Hello Frank

if you use SQL 2000 or 2005 you can use notfication services to acomplish
this ( great new feature ) for sql 2000 this is a ( free ) adon you need
to install to get this working SQL 2005 has this functionality standard
onboard ... the database performs then a callback to your app when the
subscribed dataset changes

search on MSDN for notification services
regards

Michel Posseth [MCP]
"Frank" <Fr***@discussions.microsoft.com> wrote in message
news:AC**********************************@microsof t.com...
I have an application that is used by multiple people. They all see the
same
table contents from a sql-db. If a user adds/changes or removes a record
the
other users must refresh there dataset manually to see the changes. How
can I
make my application aware of db-changes automaticly so that the users
don't
have to manually refresh the screen.

Thanks,
Frank

Dec 2 '05 #3
Thank you very much. This is what I was looking for.

Cheers,
Frank

"m.posseth" wrote:

Hello Frank

if you use SQL 2000 or 2005 you can use notfication services to acomplish
this ( great new feature ) for sql 2000 this is a ( free ) adon you need
to install to get this working SQL 2005 has this functionality standard
onboard ... the database performs then a callback to your app when the
subscribed dataset changes

search on MSDN for notification services
regards

Michel Posseth [MCP]
"Frank" <Fr***@discussions.microsoft.com> wrote in message
news:AC**********************************@microsof t.com...
I have an application that is used by multiple people. They all see the
same
table contents from a sql-db. If a user adds/changes or removes a record
the
other users must refresh there dataset manually to see the changes. How
can I
make my application aware of db-changes automaticly so that the users
don't
have to manually refresh the screen.

Thanks,
Frank


Dec 5 '05 #4

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

Similar topics

12
by: Alban Hertroys | last post by:
Good day, I have a number of threads doing inserts in a table, after which I want to do a select. This means that it will occur that the row that I want to select is locked (by the DB). In these...
1
by: AndreA | last post by:
Hello I´m using MS-SQL Server 2k with a custom application connecting to it. I need a quick and simple way to detect any change (insert, update, delete) to my database (not just to a single...
1
by: Reddy | last post by:
Hi, I am in the process of developing a C# application which runs continuously in the background on the server. It should grab the changes in the database and send the modified or new results to...
1
by: Ludovic Lemarinel | last post by:
Hi, I've got a Tab Control, with a lot of tabs, and a lot of controls in each tab (textboxes, comboboxes, listviews, checkboces, etc...). As these controls are updating a Database, I need to...
3
by: ton | last post by:
How can I detect that the user has modified the data on the page where several textboxes, checkboxes and dropdownlist exist. Ton
1
by: Bob | last post by:
I am developing a database app using vb.net and SQL Server. I am trying to come up with a way I can detect if the user has made any changes/updates to any data currently displayed on the form so that...
2
by: Joe | last post by:
Hi I am building a datatable manually and putting in a grid I would like to edit a row then determine that the table has changes and needs to be saved The problem I am having is that all...
2
by: GS | last post by:
How do I properly detect row change before allowing moving to next row? I tried using RowLeave . here is brief descript of the form setup. I have ieStringTmpDataSetwith regex table...
0
by: saadkhan | last post by:
I have a table named 'UnitsLocations' in which there are two columns, id of uniqueidentifier datatype and LocationXML of XML datatype. I just need to detect whether any changes have made in...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...

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.