Answer by Mapleleaf Enterprises for How do I temporarily disable sp_send_dbmail?
This worked for me.USE msdbGOEXECUTE dbo.sysmail_stop_spGO
View ArticleAnswer by RateControl for How do I temporarily disable sp_send_dbmail?
USE msdbGOEXECUTE dbo.sysmail_stop_spGOWill stop the server from sending mail. EXECUTE dbo.sysmail_start_sp will start up the service again.
View ArticleAnswer by db2 for How do I temporarily disable sp_send_dbmail?
Assuming you're sending the messages from within a few stored procedures, I'd recommend checking the database name before sending the message, and skipping that step if it's not the production...
View ArticleAnswer by Brandon for How do I temporarily disable sp_send_dbmail?
Couple of things come to mind.You could just remove the MAPI profile from the test server. That won't allow xp_sendmail to run - it needs MAPI to work.Otherwise, you could put a test SMTP server on the...
View ArticleHow do I temporarily disable sp_send_dbmail?
I have just taken over responsibility for a SQL 2000 system which made heavy use of xp_sendmail. We are in the process of upgrading to SQL Server 2008 R2 and I have implemented sp_send_dbmail. We are...
View Article