Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8846249
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T11:56:06+00:00 2026-06-14T11:56:06+00:00

Hi somebody can help me with this please? declare @account_name varchar(128) = ‘Test Mail

  • 0

Hi somebody can help me with this please?

 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

give me an error messeage:

” Msg 8114, Level 16, State 1, Procedure sysmail_add_account_sp, Line
0 Error converting data type nvarchar to int. “

I can’t find out why?

The source is from the http://sqlwithmanoj.wordpress.com/2010/09/29/database-mail-setup-sql-server-2005/

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T11:56:07+00:00Added an answer on June 14, 2026 at 11:56 am

    First thing I would recommend is to use named parameters so stored proc exactly knows which parameter goes where:

       EXECUTE [msdb].[dbo].[sysmail_add_account_sp]
            @account_name=@account_name,
            @description=@description,
            .....
    

    And also as per MSDN it looks like order you passing them is incorrect
    http://technet.microsoft.com/en-us/library/ms182804(v=sql.90).aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can somebody please help me with this mail script. I'm simply trying to send
Please can somebody help me convert this MySQL query in to Entity Framework? Im
Can somebody help me please, I have this code : $('childcat').setHTML('Loading...'); I would like
Can somebody help me construct this regular expression, please... Given the following strings... "April
Can somebody please help me with this difficulty I am having? I would like
Can somebody help me with this. There is HTML code: <h3> <label> <input type=checkbox
Heyy can somebody help me ? i have this issue that still do know
can somebody help me select the url from this XML document where the ID
Can somebody help me? please i really need to parse at least google. i
Hi people I been trying to do this the whole night, can somebody help

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.