Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 Reporting Services Development
 SQL Mail or Perl Script?

Author  Topic 

barrybritanico
Starting Member

3 Posts

Posted - 2009-11-16 : 22:31:12
Hello Everyone,

Basically what I want to do is create monitoring reports from the query results from time to time. These results are then assessed and when a certain condition is met, this should be sent to user emails.

From this, two approaches have been identified.

1. Use Stored Procedures and with the use of SQL Mail
http://classicasp.aspfaq.com/email/how-do-i-send-e-mail-from-sql-server.html

2. Create a Perl Script that would do the queries and email functionality and make it a scheduled job.

With this, since I am quite unfamiliar with stored procedures and the use of SQL mail(approach 1), I would like to know on your thoughts about this. Is this the more feasible approach? What are the advantages?

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-11-17 : 00:26:43
Duplicate topic, locking thread.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page
   

- Advertisement -