﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2005 / SQL Server Newbies  / Alert Database creation / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Fri, 24 May 2013 08:25:55 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Alert Database creation</title><link>http://www.sqlservercentral.com/Forums/Topic743354-1291-1.aspx</link><description>[quote][b]John Mitchell-245523 (7/9/2009)[/b][hr]Have you looked at DDL triggers?  As far as I know, you can create a trigger that will fire when a DDL event (such as creation of a database) occurs, and have that trigger send the e-mail.  That way, you get your notification immediately and don't have to wait until the next morning.John[/quote]This could be a very late reply. Sending e-mails from DDL Triggers (or for that reason any trigger) could give some misleading error messages like incorrect "mail profile names" or "Databasemail XP warnings" when creating a new database/table.</description><pubDate>Wed, 08 May 2013 22:07:48 GMT</pubDate><dc:creator>Mohammed Imran Ali</dc:creator></item><item><title>RE: Alert Database creation</title><link>http://www.sqlservercentral.com/Forums/Topic743354-1291-1.aspx</link><description>only Thing about using triggers, is the fact you can take a hit on the performance.  It just depends on the Transaction you are monitoring, something like creating new databases should not happen to often so it may not be a major issue.  You might consider using SCOM, SQL DM, or any of the SQL monitoring tools.   :-)</description><pubDate>Tue, 14 Feb 2012 07:37:55 GMT</pubDate><dc:creator>Kevi322000</dc:creator></item><item><title>RE: Alert Database creation</title><link>http://www.sqlservercentral.com/Forums/Topic743354-1291-1.aspx</link><description>Have you looked at DDL triggers?  As far as I know, you can create a trigger that will fire when a DDL event (such as creation of a database) occurs, and have that trigger send the e-mail.  That way, you get your notification immediately and don't have to wait until the next morning.John</description><pubDate>Thu, 09 Jul 2009 04:39:21 GMT</pubDate><dc:creator>John Mitchell-245523</dc:creator></item><item><title>RE: Alert Database creation</title><link>http://www.sqlservercentral.com/Forums/Topic743354-1291-1.aspx</link><description>[quote][b]hi_abhay78 (7/6/2009)[/b][hr]As per this MSDN , yes its not supported .http://msdn.microsoft.com/en-us/library/ms165636(SQL.90).aspxBut there is a tweak :) Copy DatabaseMail90.exe, DatabaseMailEngine.dll and DatabaseMailProtocols.dll into the MSSQL\Binn directory and execute below mentioned system SPs (in MSDB context)dbo.sysmail_start_spdbo.sysmail_stop_sp You are done .Actually these 3 files you need to copy from ENT edition or STD edition.Regards[/quote]And probably not legal either unless those files are part of a redistibutable package.  Which means if you have any problems you won't get any support from Microsoft.</description><pubDate>Mon, 06 Jul 2009 22:09:30 GMT</pubDate><dc:creator>Lynn Pettis</dc:creator></item><item><title>RE: Alert Database creation</title><link>http://www.sqlservercentral.com/Forums/Topic743354-1291-1.aspx</link><description>As per this MSDN , yes its not supported .http://msdn.microsoft.com/en-us/library/ms165636(SQL.90).aspxBut there is a tweak :) Copy DatabaseMail90.exe, DatabaseMailEngine.dll and DatabaseMailProtocols.dll into the MSSQL\Binn directory and execute below mentioned system SPs (in MSDB context)dbo.sysmail_start_spdbo.sysmail_stop_sp You are done .Actually these 3 files you need to copy from ENT edition or STD edition.Regards</description><pubDate>Mon, 06 Jul 2009 21:31:36 GMT</pubDate><dc:creator>hi_abhay78</dc:creator></item><item><title>RE: Alert Database creation</title><link>http://www.sqlservercentral.com/Forums/Topic743354-1291-1.aspx</link><description>Database Mail is not supported in the Express Edition, nor is SQL Server Agent.</description><pubDate>Mon, 06 Jul 2009 20:30:33 GMT</pubDate><dc:creator>Lynn Pettis</dc:creator></item><item><title>RE: Alert Database creation</title><link>http://www.sqlservercentral.com/Forums/Topic743354-1291-1.aspx</link><description>I have never tried creating the database mail profiles and accounts through Express .But for jobs you need SQL Agent .Normal Express does nto have express agent with it .you need to install advanced tools for SQL Express .After that it should work .I am confident that database mail is suported in Express as well ..Regards</description><pubDate>Mon, 29 Jun 2009 00:12:46 GMT</pubDate><dc:creator>hi_abhay78</dc:creator></item><item><title>RE: Alert Database creation</title><link>http://www.sqlservercentral.com/Forums/Topic743354-1291-1.aspx</link><description>Is this possible in express edition.</description><pubDate>Mon, 29 Jun 2009 00:03:21 GMT</pubDate><dc:creator>Eswin</dc:creator></item><item><title>RE: Alert Database creation</title><link>http://www.sqlservercentral.com/Forums/Topic743354-1291-1.aspx</link><description>You can create an SP using xp_sendmail .Finally create a job that executes daily before you come to office and send you the mail .In xp_sendmail you can use the query :select * from sys.databases where datediff(day,create_date ,getdate()) &lt;=1For backups you can configure alerts or just add the same step mentioned above with message "backup on server XXXX failed" as a step in case the backup fails in the job .Regards</description><pubDate>Sun, 28 Jun 2009 23:51:17 GMT</pubDate><dc:creator>hi_abhay78</dc:creator></item><item><title>Alert Database creation</title><link>http://www.sqlservercentral.com/Forums/Topic743354-1291-1.aspx</link><description>HI ExpertzCan anyone please tell me how to create an alert (send mail) when a new database is created and also for Backup and Restore operations in your server.</description><pubDate>Sun, 28 Jun 2009 23:08:34 GMT</pubDate><dc:creator>Eswin</dc:creator></item></channel></rss>