Microsoft
Software
Hardware
Network
Question : SQL server - email notifictian on empty table
Hi experts,
I'm looking for a sollution for the following problem:
I have a database with a table (lets say its called
myTable
). Whenever the tables is NOT empty, the SQL server should e-mail me.
I'm trying to accomplish this by using the following (scheduled) job:
1:
IF EXISTS (SELECT * FROM dbo.myTable) exec THE_MAIL_PROCEDURE
However, the
exec
command should be used to execute stored procedures, right? So i'm looking for stored procedure that e-mails multiple adresses (my defined sql operators)
Also; this is the sollution i'm trying to make, if you guys have a totally different way I'd be glad to accept that too.
the SQL server is version 2005
Answer : SQL server - email notifictian on empty table
You can use this procedure
msdb.dbo.sp_send_dbmail
You need to create a database mail profile before use it.
http://msdn.microsoft.com/
es-es/libr
ary/ms1903
07.aspx
Random Solutions
OWA setup issues in Exchange 2010
System.InvalidCastExceptio
n was unhandled by user code Error code on LINQ
Types of authentications in ASP.NET and when are they used?
How to save images and image file paths into SQL from delphi form
How do I convert HDMI output to DVI ?
getElementByID not loading text
Java Not Working in Internet Explorer or Firefox
No mapping found for HTTP request with URI [/MyWeb/help/webhelp.css] in DispatcherServlet with name 'help'
Adding URL Parameter
Horizontal RSS Feed News Ticker