嗨,有人可以帮我吗?
declare @account_name varchar(128) = 'Test Mail Account'
declare @description varchar(128) = 'Mail account for administrative e-mail.'
declare @email_address varchar(128) = 'abc@xyz.com'
declare @replyto_address varchar(128) = 'abc@xyz.com'
declare @display_name varchar(128) = 'Manoj Pandey'
declare @mailserver_name varchar(128) = 'smtp.xxxx.net'
declare @port int = 587
declare @username nvarchar(128)= 'xyz'
declare @password varchar(128) = 'xxyyzz'
declare @enable_ssl int = 1
EXECUTE [msdb].[dbo].[sysmail_add_account_sp]
@account_name,
@description,
@email_address,
@replyto_address,
@display_name,
@mailserver_name,
@port,
@username,
@password,
@enable_ssl
给我一个错误信息:
“消息 8114,级别 16,状态 1,过程 sysmail_add_account_sp,第 0 行错误将数据类型 nvarchar 转换为 int。”
我不知道为什么?
来源来自http://sqlwithmanoj.wordpress.com/2010/09/29/database-mail-setup-sql-server-2005/
谢谢