473,498 Members | 1,832 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Recieving notification when a table changes

11 New Member
Hi,
Is there any way to know when a change in table occurs for a postgresql table to the front end , VC++ ?

Please reply me soon.

Anita
Aug 30 '06 #1
2 2769
anitajose
11 New Member
Hi,
Is there any way to know when a change in table occurs for a postgresql table to the front end , VC++ ?

Please reply me soon.

Anita
Please reply meeeee
Sep 7 '06 #2
somaskarthic
60 New Member
Hi

I'm not sure whether there exist some inbuilt methods for lastmodification datetime for a table .
But you can achieve this using triggers.
Let your table name be 'table1' and have one more table 'table_lastupdate_time'. If you insert,delete, or update any data in 'table1' ,
your trigger function should store the details in 'table_lastupdate_time'

Let the new table ('table_lastupdate_time') contain two fields,
1.tablename
2.last_action (timestamp).

The trigger function (on insert , delete or update )should update current_timestamp to the last_action field.

So, in your vc++ application you can retrieve the last_action time from ''table_lastupdate_time' table.

-somaskarthic




Hi,
Is there any way to know when a change in table occurs for a postgresql table to the front end , VC++ ?

Please reply me soon.

Anita
Sep 7 '06 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

6
7185
by: Raphael Gluck | last post by:
Hi, Is it possible for one to program one's pages as such that when a database table is updated over the web, via a form, that an e-mail confirmation is sent to a specified address, notifying...
5
2060
by: jason | last post by:
I could sure use some conceptualization and query help with a Page Watch System I am building in Access 2000 and Asp. I need to cycle through databae and generate a compiliation query email that...
9
4748
by: Marty | last post by:
Hi, I have an application bound to a database through ADO.NET, how can it be notified when the database content is updated by a third party ? If you have any idea or link that I could read I...
0
1372
by: Nadia Amir | last post by:
I want to enable SQL cache notification on northwind tables employees. I have used the tool aspnet_regsql.exe as defined in the tutorial http://msdn2.microsoft.com/en-us/library/e3w8402y(vs.80).aspx...
4
2571
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
2135
by: cjard | last post by:
Suppose: A TextBox is bound to a BindingSource, which is bound to a DataTable A BindingNavigator is used to alter the current row being looked at by the BindingSource (i.e. Nav's NEXT button is...
0
1109
by: MattC | last post by:
I have the following code. I get an initial Subscribe event but then I get no notification in the app. I call SqlDependency.Start(DatabaseProviderHelper.ConnectionString); on the web app...
2
1915
by: Jurjen de Groot | last post by:
I will be developping a planning application for wich it's necessary for multiple users to view and edit the same data, all changes made by one user, must be visible to the other user's more or...
1
4432
ashitpro
by: ashitpro | last post by:
Hi there, I am working on a distributed service detection project, written in C/C++ Platform is Linux. Each system under network has mysql database for general storage. If first node queries to...
0
7121
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
6993
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
7162
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,...
1
6881
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
7375
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
5456
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
3078
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
650
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
287
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.