Viewing 9 posts - 1 through 9 (of 9 total)
Hi Thanks for the swift response, that did get rid of my syntax error thanks.:-)
January 14, 2014 at 9:46 am
Hi where would the IF condition be best placed as I really don't want a full mailbox..
Thanks
Steve.
September 26, 2013 at 3:57 am
Hi Sean, please can you check...
CREATE TRIGGER tgr_SM7EmailQ
ON TBL_EVENTOUTm1
AFTER INSERT
AS
BEGIN
SELECT COUNT(*) AS EMAILQFULL, [evtype]
FROM EVENTOUTM1
GROUP BY [evtype]
HAVING COUNT(*)>= 90
EXEC msdb.dbo.sp_send_dbmail @profile_name='profile name',@subject='Email Q Rows Filling up', @recipients ='email address',@body =...
September 26, 2013 at 3:45 am
Hi Sean,
I have managed to get the query working and also have setup DB Mail and the Query now mails me if the rows are greater than 90 so all...
September 25, 2013 at 3:37 am
Many Thanks Sean,
I will pick this up again tomorrow............
luckily I have a test server to try it out on will read the article and go from there. I have created...
September 23, 2013 at 9:42 am
Hi Sean,
That is great info, yeah the info needs to be real time our Help desk ticketing application gets lots of email request into a particular table and seem to...
September 23, 2013 at 8:56 am
yeah this is a great help many thanks!!!
next step is to I suppose create a Job with the SQL query in as a step the next step is how do...
September 23, 2013 at 8:36 am
Hi, how do I do this ?
my select statement goes something like this
Select count(*) AS EMAILQFULL,column name from tablename
group by column name
this returns the number of rows in the...
September 23, 2013 at 7:31 am
Viewing 9 posts - 1 through 9 (of 9 total)