The tool Microsoft has provided for this task is the SQL Server Surface Area Configuration. This tip will focus on one of the features that is enabled via this tool Database Mail. SQL Server 2. 00. Surface Area Configuration Database Mail. Step 1 The enabling of this feature is simple enough launch SQL Server Surface Area Configuration from your Start Menu Step 2 Select Surface Area Configuration for Features Step 3 Expand Database Engine, select Database Mail, and check the Enable Database Mail Stored Procedures checkbox. SQL Server 2. 00. Im trying to access the SQL Server instance on my VPS from SQL Server Management Studio on my local machine. Its not working the error Im getting is A. I cant telnet into port 1433 going from A to B, but I can from B to A. I have an XP Pro SP3 box and a Win2003 Server, each running MS SQL Server 2005. Recently I was performing an OS upgrade on one of our DB servers, moving from Server 2003 to Server 2008. The DBMS is SQL Server 2005. While reinstalling SQL on the. PNG' alt='Installation Of Sql 2005 Server Does Not Allow' title='Installation Of Sql 2005 Server Does Not Allow' />Management Studio Database Mail Configuration. At this point youve simply enabled the 2. SQL 2. 00. 5 under the auspices of Database Mail. It is now necessary to configure Database Mail for your environment. For that we must move onto more familiar territory SQL Server management Studio SSMS. Database Mail configuration in SQL Server 2. Management Studio. Step 1 After launching SSMS, youll need to connect to the server for which you wish to configure Database Mail. Expand the Management folder, then right click Database Mail and select Configure Database Mail. Step 2 Doing so will launch the Configure Database Mail Wizard. It may look a little confusing at first, but once we step through it the script at the end of this tip will make more sense. Step 3 Since were setting up Database Mail for the first time, select the Setup option as recommended. Step 4 The first step is to set up an email profile to be used with mail being sent from your SQL Server 2. SMTP account to the profile. Step 5 Click the Add button to assign an SMTP account to the profile youre creating. You may need to work with your Server Technicians andor Security Teams to collect some of the information youll need. Its best to have this ahead of time so as not to hold up the process of configuring Database Mail. You will need the account name, description, email address both incoming and outgoing, display name, and SMTP server name for this account. Be sure to confirm the port number with your Server Technicians as well. Typically, the default of port 2. Select how you want to authenticate to the SMTP server and then click OK to proceed. Step 6 You will notice that the account information is now listed. You can set up multiple accounts for the Database Mail profile to allow for failover if you so choose. Click Next to continue onto setting up security for the Database Mail profile. Ive already taken the liberty of setting this up as a Public Profile. This means that all users of the SQL instance will have access to this Database Mail profile. You have the option of creating Private Profiles that are only accessible to certain users of the instance. In our environment we have a default Database Mail profile that is used across all SQL instances. Your environment may differ. A Future tip will outline creation and use of Private Database Mail Profiles. Step 7 Once your form looks similar to this click Next to proceed to setting up your Database Mail system parameters, that form will look something like the one below. I make no suggestions here. You need to configure these settings to best suit your environment. In our environment I tend to allow for up to 5 retry attempts, but other than that I leave the defaults unchanged. Step 8 It is finally time to finish up with the wizard. Click Next for a summary of all the configuration settings youve made. Once youve reviewed them you can proceed with running the underlying stored procedures that create. Database Mails T SQL Commands. Congratulations, at this point youre now able to utilize Database Mail in the same manner as you utilized SQL Mail in previous versions of Microsoft SQL Server. However, you may have noticed that stepping through the wizard was a little time consuming. I would rather script out repetitive tasks rather than step through a wizard. If youre like me, you support more than a single instance of Microsoft SQL Server with more instances coming online all the time. That is why I maintain a SQL Server Solution that contains a listing of approximately a dozen scripts that I can run immediately after I install SQL Server 2. Surface Area Configuration tool. The last script I run executes four Database Mail stored procedures enabled during our visit to the Surface Area Configuration tool that cumulatively create the default profile I use across all my SQL Server instances, then sets up the associated account, security, parameters for that profile. SQL Server 2. Database Mail Configuration Script Create a Database Mail profile EXECUTE msdb. SQL2. 00. 5EmailProfile. Name, description Notification service for SQL Server Create a Database Mail account EXECUTE msdb. SQL Server Notification Service, description SQL Server Notification Service, emailaddress john. SQL Server Notification Service, mailservername smtpserver. Add the account to the profile EXECUTE msdb. SQL2. 00. 5EmailProfile. Name, accountname SQL Server Notification Service, sequencenumber 1 Grant access to the profile to the DBMail. Users role EXECUTE msdb. SQL2. 00. 5EmailProfile. Name, principalid 0, isdefault 1 SELECT FROM msdb. SELECT FROM msdb. TNBlogsFS/BlogFileStorage/blogs_msdn/petersad/WindowsLiveWriter/InstallSQLServer2008R2ExpressEdition_13353/image12_thumb.png' alt='Installation Of Sql 2005 Server Does Not Allow' title='Installation Of Sql 2005 Server Does Not Allow' />One of the most welcome SQL Server 2005 enhancements over its predecessors is Database Mail. Database Mail is built on the Simple Mail Transfer Protocol SMTP as. SQL Server Management Studio. Version Information. The release number 17. The build number for this release 14. New in this Release. SSMS 17. 3 is the. Microsoft SQL Server is a relational database management system developed by Microsoft. As a database server, it is a software product with the primary function of. Back in February I blogged about my less than successful attempt at installing Microsoft SQL Server Express 2005. The comments from that post confirmed that I was not. Back To Basics 1 2 Installer Youtube. This is a simple process, much more simple than the wizard. First, you pass the profile name and description into the dbo. The next stored procedure, dbo. The third system stored procedure youll execute is dbo. Finally, execute dbo. DBMail. Users role on the SQL Server instance. The SELECT statements that close out the statement block will confirm your settings executed successfully. Twenty eight lines of code and 2 seconds versus stepping through nine screens in the Configure Database Mail wizard. You be the judge. Additional Important Database Mail Stored Procedures. The first thing youll notice when comparing SQL Mail versus Database Mail stored procedures is the sheer increase in available stored procedures that are now associated with the de facto messaging component for SQL Server 2.