Last December I blogged about a bug in the MailServer object, in that they left out a New() method for creating a MailServer object. The full description of the error and workaround is here and the Connect item I filed on the problem is here..
In browsing through the SMO Object Library for SQL Server 2008 I see they still have not included a New() method for the MailServer object, so the workaround is still in play.
Allen
Comment Notification
If you would like to receive an email when updates are made to this post, please register here
Subscribe to this post's comments using
About AllenMWhite
Allen White is a SQL Server Trainer for Scalability Experts, a leading provider of scalable solutions, training and services based on Microsoft SQL Server. He has worked as a Database Administrator, Architect and Developer for over 30 years, supporting both the Sybase and Microsoft SQL Server platforms over that period.