<span id="mktg5"></span>

<i id="mktg5"><meter id="mktg5"></meter></i>

        <label id="mktg5"><meter id="mktg5"></meter></label>
        最新文章專題視頻專題問答1問答10問答100問答1000問答2000關鍵字專題1關鍵字專題50關鍵字專題500關鍵字專題1500TAG最新視頻文章推薦1 推薦3 推薦5 推薦7 推薦9 推薦11 推薦13 推薦15 推薦17 推薦19 推薦21 推薦23 推薦25 推薦27 推薦29 推薦31 推薦33 推薦35 推薦37視頻文章20視頻文章30視頻文章40視頻文章50視頻文章60 視頻文章70視頻文章80視頻文章90視頻文章100視頻文章120視頻文章140 視頻2關鍵字專題關鍵字專題tag2tag3文章專題文章專題2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章專題3
        問答文章1 問答文章501 問答文章1001 問答文章1501 問答文章2001 問答文章2501 問答文章3001 問答文章3501 問答文章4001 問答文章4501 問答文章5001 問答文章5501 問答文章6001 問答文章6501 問答文章7001 問答文章7501 問答文章8001 問答文章8501 問答文章9001 問答文章9501
        當前位置: 首頁 - 科技 - 知識百科 - 正文

        Howtosendemailusingsqlserver

        來源:懂視網 責編:小采 時間:2020-11-09 15:36:28
        文檔

        Howtosendemailusingsqlserver

        Howtosendemailusingsqlserver:This is from CodeProject:http://www.codeproject.com/Articles/846204/How-To-Send-Mail-Using-SQL-Server-Part Introduction There are three parts for this tutorial: Configure email profile and send test email using SQL Server Select and send d
        推薦度:
        導讀Howtosendemailusingsqlserver:This is from CodeProject:http://www.codeproject.com/Articles/846204/How-To-Send-Mail-Using-SQL-Server-Part Introduction There are three parts for this tutorial: Configure email profile and send test email using SQL Server Select and send d

        This is from CodeProject:http://www.codeproject.com/Articles/846204/How-To-Send-Mail-Using-SQL-Server-Part Introduction There are three parts for this tutorial: Configure email profile and send test email using SQL Server Select and send d

        This is from CodeProject:http://www.codeproject.com/Articles/846204/How-To-Send-Mail-Using-SQL-Server-Part

        Introduction

        There are three parts for this tutorial:

      1. Configure email profile and send test email using SQL Server
      2. Select and send data in mail
      3. Schedule daily mail from SQL Server
      4. Step 1

        Log in to SQL Server 2008 with a correct user name and password.

        Step 2

        Expand the Management tab, then select SQL Server Logs, then right-click on Database Mail, then select Configure Database Mail.

        Step 3

        The following window appears:

        Click Next.

        Step 4

        Select the Set up Database Mail by performing the following tasks: radio button.

        Step 5

        Click Next, then a confirmation box appears; click OK on that.

        Step 6

        When you click OK, then write the profile name description and click on Add.

        Step 7

        Then, a new window appears where you provide your profile name and configure Outgoing Mail Server(SMTP) then click Basic authentication and provide your email id and password then click OK.

        Step 8

        Then in the new window, it will show your profile, check that and click Next.

        Step 9

        Then in the new window, the Configure System Parameters description is shown.

        Step 10

        Click Next. It will show a confirmation about your profile; click Finish.

        Step 11

        Now the email service has been configured, click Close.

        Step 12

        Send a test email by right-clicking on database mail and click Send Test E-Mail.

        Step 13

        Provide the Test Email Id and click On Send Test E-Mail. Then check your mail to see if you got the mail. Enjoy!!

        Note

        After the Account and the Profile are created successfully, we need to configure the Database Mail. To configure it, we need to enable the Database Mail XPs parameter using the sp_configure Stored Procedure, as shown here:

        Collapse | Copy Code

         sp_CONFIGURE 'show advanced', 1 
         GO 
         RECONFIGURE 
         GO 
         sp_CONFIGURE 'Database Mail XPs', 1 
         GO 
         RECONFIGURE 
         GO 

        Output Message

        The Configuration option "show advanced options" changed from 0 to 1. Run the RECONFIGURE statement to install.

        The configuration option "Database Mail XPs" changed from 1 to 1. Run the RECONFIGURE statement to install.

        Use the following query to send mail using query:

        Send Mail Query

        USE msdb;--Must Use msdb database, otherwise you will get error.

        Collapse | Copy Code

         GO 
         EXEC sp_send_dbmail @profile_name='MyTestMail', 
         @recipients='manishki@live.com', 
         @subject='My Test Mail Service.', 
         @body='Database Mail Received Successfully.' 

        This is the body of this message.

        Note

        If you are using a database other than msdb, then use a stored procedure like msdb.dbo.sp_send_dbmail. The log can be checked in sysmail_log table as shown below:

        Collapse | Copy Code

         SELECT * FROM sysmail_mailitems 
         GO 
         SELECT * FROM sysmail_log 
         GO 
         select * from sysmail_log 
        

        聲明:本網頁內容旨在傳播知識,若有侵權等問題請及時與本網聯系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com

        文檔

        Howtosendemailusingsqlserver

        Howtosendemailusingsqlserver:This is from CodeProject:http://www.codeproject.com/Articles/846204/How-To-Send-Mail-Using-SQL-Server-Part Introduction There are three parts for this tutorial: Configure email profile and send test email using SQL Server Select and send d
        推薦度:
        標簽: sql Email send
        • 熱門焦點

        最新推薦

        猜你喜歡

        熱門推薦

        專題
        Top
        主站蜘蛛池模板: 久久精品亚洲视频| 亚洲综合网站色欲色欲| 亚洲成a人片7777| 久久中文字幕免费视频| 精品亚洲永久免费精品| 两个人的视频www免费| 中文字幕人成人乱码亚洲电影| 亚洲av日韩专区在线观看| 日韩在线看片免费人成视频播放| 亚洲精品无码专区在线播放| 日韩激情无码免费毛片| 水蜜桃视频在线观看免费| 亚洲日本中文字幕一区二区三区 | 亚洲日韩一区二区一无码| 成人a免费α片在线视频网站| 亚洲国产视频久久| 国产成人高清精品免费鸭子| 香港特级三A毛片免费观看| 亚洲精品人成无码中文毛片| a级毛片免费完整视频| 亚洲精彩视频在线观看| 毛片免费观看网站| 日韩免费高清一级毛片| 国产亚洲一区二区三区在线观看| 91青青国产在线观看免费| 久久久久se色偷偷亚洲精品av| 拔擦拔擦8x华人免费久久| 一级毛片a免费播放王色| 亚洲精品国产成人99久久| 美女被免费视频网站a国产| 全黄A免费一级毛片| 亚洲a一级免费视频| 免费电影在线观看网站| 产传媒61国产免费| 亚洲精品在线播放| 天堂亚洲免费视频| 91精品免费高清在线| 久久精品熟女亚洲av麻豆| 亚洲AV无码久久精品蜜桃| 日韩电影免费在线观看视频 | 日本中文字幕免费看|