更新时间:2021-09-04 08:28:52
嗨Jerzon Barbacena,
Hi Jerzon Barbacena,
感谢您的提问。
@ profile_name是要从中发送消息的配置文件的名称。 profile_name的类型为sysname,默认值为NULL。 profile_name必须是现有数据库邮件配置文件的名称。
如果未指定profile_name,则sp_send_dbmail将使用当前用户的默认专用配置文件。如果用户没有默认的专用配置文件,sp_send_dbmail将使用msdb数据库的默认公用配置文件。如果用户没有
默认私有配置文件且数据库没有默认公共配置文件,则必须指定** @ profile_name **。
@profile_name is the name of the profile to send the message from. The profile_name is of type sysname, with a default of NULL. The profile_name must be the name of an existing Database Mail profile. When no profile_name is specified, sp_send_dbmail uses the default private profile for the current user. If the user does not have a default private profile, sp_send_dbmail uses the default public profile for the msdb database. If the user does not have a default private profile and there is no default public profile for the database, **@profile_name** must be specified.
那里是一篇关于
的文章
如何创建数据库邮件配置文件,您可以使用数据库邮件配置向导或Transact-SQL创建数据库邮件公共和私有配置文件。请参考它。
There is an article about How to Create a Database Mail Profile and you can use either the Database Mail Configuration Wizard or Transact-SQL to create Database Mail public and private profiles. Please refer to it .
正如你所说'它没有效果',请你分享一下我们的更多信息?
And as you said that 'it has no effect', could you please share us more information ?
希望它可以帮到你。
***的问候,
Rachel
>