By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,677 Members | 1,060 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,677 IT Pros & Developers. It's quick & easy.

email notification, when database updated?

P: n/a
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
Share this Question
Share on Google+
6 Replies


P: n/a
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

P: n/a
> 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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.