473,416 Members | 1,766 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,416 software developers and data experts.

email notification, when database updated?

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 the update has taken place?
If so is there a tutorial out there that is easy to understand and
implement?

Thanks so much

Raphael
Jul 19 '05 #1
6 7175
Sure, if you're using SQL Server, you can use a trigger to do this, however
it would be more efficient to just call the e-mail from the stored procedure
that updates the table.
(see http://www.aspfaq.com/2403)

If you're using Access, you can have your form handler send mail directly
from ASP.
(see http://www.aspfaq.com/2119 / http://www.aspfaq.com/2026)

"Raphael Gluck" <iwish i could tell you @alas blame the spammers> wrote in
message news:#l**************@TK2MSFTNGP12.phx.gbl...
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 the update has taken place?
If so is there a tutorial out there that is easy to understand and
implement?

Thanks so much

Raphael

Jul 19 '05 #2
> I have one page on my site that is technically a feedback form, that
updates
a feedback table in my Database,


So send an e-mail from this page. This is not complicated at all.
Jul 19 '05 #3
I think you need to distinguish between whether you wish to recieve an email
notification if a new user is added to your database...OR....

If you actually need to create an AUDIT trail of the changes made to your
products/inventory/items etc by the administrator in your online admin
section with regards:

1. EDITS
2. INSERTIONS
3. DELETES.

In this situation, you could:

1. Create duplicate audit tables of your primary tables: eg: Primary:
Inventory table and Audit: Audit table:

The audit table would contain all the fields in the primary table PLUS:
AuditType (eg: edit), AuditDate, AuditPerson (eg Administrator).

Thus: If the adminstatror 'edits' the inventory table it automatically
updates the audit table and inserts all the same data plus: EDIT,
27/05/2003, Administrator.

You could then generate a daily report to view all the different changes to
the system and trigger other events based on this.

Future challenges could include trying to do automatic email notifications
to your customers that new inventory has been added. You then run into
problems with limiit restrictions imposed on your host eg: 800 emails per
day via CDO or aspEmail.

You could buy a list sever - but more complex and/or expensive.

You could buy the product called Access Emailer but this only works locally
off your drive. You would then need to figure a way to sync the offline and
online acess databases to allow you to leverage the local Access Emailer.

These are actually problems I am grappling with and compouned by fact that
my engine local database is a different format: Act! which means I have to
consider user restrictions and the possibility of using other add-ons which
have limited programming api potential.

Read more on audit trails here for access 2000:
http://www.google.com/search?hl=en&i...rail+for+acces
s+2000

Hth
Jason

When the administrator updates the inventory table it also updates the audit
able
"Raphael Gluck" <iwish i could tell you @alas blame the spammers> wrote in
message news:#l**************@TK2MSFTNGP12.phx.gbl...
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 the update has taken place?
If so is there a tutorial out there that is easy to understand and
implement?

Thanks so much

Raphael

Jul 19 '05 #4
thanks Jason for that
Certainly something to read up on, though i guess at the moment i am just
looking for something simple

But thanks for taking the time to help me

Raphael
"jason" <ja***@catamaranco.com> wrote in message
news:um**************@tk2msftngp13.phx.gbl...
I think you need to distinguish between whether you wish to recieve an email notification if a new user is added to your database...OR....

If you actually need to create an AUDIT trail of the changes made to your
products/inventory/items etc by the administrator in your online admin
section with regards:

1. EDITS
2. INSERTIONS
3. DELETES.

In this situation, you could:

1. Create duplicate audit tables of your primary tables: eg: Primary:
Inventory table and Audit: Audit table:

The audit table would contain all the fields in the primary table PLUS:
AuditType (eg: edit), AuditDate, AuditPerson (eg Administrator).

Thus: If the adminstatror 'edits' the inventory table it automatically
updates the audit table and inserts all the same data plus: EDIT,
27/05/2003, Administrator.

You could then generate a daily report to view all the different changes to the system and trigger other events based on this.

Future challenges could include trying to do automatic email notifications
to your customers that new inventory has been added. You then run into
problems with limiit restrictions imposed on your host eg: 800 emails per
day via CDO or aspEmail.

You could buy a list sever - but more complex and/or expensive.

You could buy the product called Access Emailer but this only works locally off your drive. You would then need to figure a way to sync the offline and online acess databases to allow you to leverage the local Access Emailer.

These are actually problems I am grappling with and compouned by fact that
my engine local database is a different format: Act! which means I have to
consider user restrictions and the possibility of using other add-ons which have limited programming api potential.

Read more on audit trails here for access 2000:
http://www.google.com/search?hl=en&i...rail+for+acces s+2000

Hth
Jason

When the administrator updates the inventory table it also updates the audit able
"Raphael Gluck" <iwish i could tell you @alas blame the spammers> wrote in
message news:#l**************@TK2MSFTNGP12.phx.gbl...
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 the update has taken place?
If so is there a tutorial out there that is easy to understand and
implement?

Thanks so much

Raphael


Jul 19 '05 #5
Simple indeed. That's is one of the beauties of eCritera.net, you get all
these
features for one low monthly fee ... instead of having to learn programming
yourself. Its a matter of how valuable your own time is.

Nobody mentioned in this newsgroup yet, but you're going to have to learn
the CDONTS API in order to do what you're talking about.

Cheers,

"Raphael Gluck" <iwish i could tell you @alas blame the spammers> wrote in
message news:OH**************@TK2MSFTNGP09.phx.gbl...
thanks Jason for that
Certainly something to read up on, though i guess at the moment i am just
looking for something simple

But thanks for taking the time to help me

Raphael
"jason" <ja***@catamaranco.com> wrote in message
news:um**************@tk2msftngp13.phx.gbl...
I think you need to distinguish between whether you wish to recieve an

email
notification if a new user is added to your database...OR....

If you actually need to create an AUDIT trail of the changes made to your
products/inventory/items etc by the administrator in your online admin
section with regards:

1. EDITS
2. INSERTIONS
3. DELETES.

In this situation, you could:

1. Create duplicate audit tables of your primary tables: eg: Primary:
Inventory table and Audit: Audit table:

The audit table would contain all the fields in the primary table PLUS:
AuditType (eg: edit), AuditDate, AuditPerson (eg Administrator).

Thus: If the adminstatror 'edits' the inventory table it automatically
updates the audit table and inserts all the same data plus: EDIT,
27/05/2003, Administrator.

You could then generate a daily report to view all the different changes

to
the system and trigger other events based on this.

Future challenges could include trying to do automatic email notifications to your customers that new inventory has been added. You then run into
problems with limiit restrictions imposed on your host eg: 800 emails per day via CDO or aspEmail.

You could buy a list sever - but more complex and/or expensive.

You could buy the product called Access Emailer but this only works

locally
off your drive. You would then need to figure a way to sync the offline

and
online acess databases to allow you to leverage the local Access Emailer.
These are actually problems I am grappling with and compouned by fact that my engine local database is a different format: Act! which means I have to consider user restrictions and the possibility of using other add-ons

which
have limited programming api potential.

Read more on audit trails here for access 2000:

http://www.google.com/search?hl=en&i...rail+for+acces
s+2000

Hth
Jason

When the administrator updates the inventory table it also updates the

audit
able
"Raphael Gluck" <iwish i could tell you @alas blame the spammers> wrote in message news:#l**************@TK2MSFTNGP12.phx.gbl...
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 the update has taken place?
If so is there a tutorial out there that is easy to understand and
implement?

Thanks so much

Raphael



Jul 19 '05 #6
I should have simply said CDO (Collaborative Data Objects) is the way to go.
Yes, I know NTS was deprecated.
"Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> wrote in message
news:#O**************@TK2MSFTNGP09.phx.gbl...
Nobody mentioned in this newsgroup yet, but you're going to have to learn the CDONTS API in order to do what you're talking about.
It probably wasn't mentioned in that manner, because CDONTS is not the

only way to send mail from ASP. CDONTS is deprecated anyway, and if you don't
know it yet, don't bother learning it now... use CDO.Message.

Jul 19 '05 #7

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

Similar topics

5
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...
7
by: Rob Meade | last post by:
Hi all, Ok - at work (NHS) we currently send out emails to everyone in the Trust (approx 2500 people) whenever there's something to say, perhaps a D&V update to let people know which wards are...
2
by: erik4x4 | last post by:
Hi, I would like to have an MS OUTLOOK email from a certain user set a record in MS ACCESS. That is everytime I get an email notification from a user, well a different database, I would like...
4
by: Grady | last post by:
Hi. I need to create a simple database that tracks equipment arrivals at my facilities. What I want is to create a simple form, which the receptionist could fill out, every time someone delivers...
6
by: \jason via DotNetMonster.com\ | last post by:
currently i am doing a personal website and keep on changing the aspect... finally the finall decision is to have a login page (requirement in asp.net, vb.net) and the login with security part of...
9
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...
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
daJunkCollector
by: daJunkCollector | last post by:
Hey, I am having a user fill out a form then the fields are going to uploaded to my database. So, at this point, when the user hits the submit button I want three things to happen: 1. The form...
3
by: ivdezine | last post by:
Hello, I have a form which allows members of my team to update a particular table, upon updating I have php set to send an email to a certain address. What I'd like to include in this email is the...
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
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
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
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.