SQL Database Mail Failure

  • Event Type:Error

    Event Source:DatabaseMail

    Event Category:None

    Event ID:0

    Date:29-11-2013

    Time:14:08:30

    User:N/A

    Computer:W6000

    Description:

    1) Exception Information

    ===================

    Exception Type: Microsoft.SqlServer.Management.SqlIMail.Server.Common.BaseException

    Message: There was an error on the connection. Reason: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified), connection parameters: Server Name: W6000\W6010_01, Database Name: msdb

    Data: System.Collections.ListDictionaryInternal

    TargetSite: Void OpenConnection(Microsoft.SqlServer.Management.Common.SqlConnectionInfo)

    HelpLink: NULL

    Source: DatabaseMailEngine

    StackTrace Information

    ===================

    at Microsoft.SqlServer.Management.SqlIMail.Server.DataAccess.ConnectionManager.OpenConnection(SqlConnectionInfo ci)

    at Microsoft.SqlServer.Management.SqlIMail.Server.DataAccess.DataAccessAdapter.OpenConnection(String dbServerName, String dbName, String userName, String password)

    at Microsoft.SqlServer.Management.SqlIMail.IMailProcess.QueueItemProcesser.ProcessQueueItems(String dbName, String dbServerName, Int32 lifetimeMinimumSec, LogLevel loggingLevel)

    2) Exception Information

    ===================

    Exception Type: System.Data.SqlClient.SqlException

    Errors: System.Data.SqlClient.SqlErrorCollection

    Class: 20

    LineNumber: 0

    Number: -1

    Procedure: NULL

    Server:

    State: 0

    Source: .Net SqlClient Data Provider

    ErrorCode: -2146232060

    Message: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

    Data: System.Collections.ListDictionaryInternal

    TargetSite: System.Data.ProviderBase.DbConnectionInternal GetConnection(System.Data.Common.DbConnection)

    HelpLink: NULL

    StackTrace Information

    ===================

    at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject)

    at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)

    at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)

    at System.Data.SqlClient.SqlConnection.Open()

    at Microsoft.SqlServer.Management.SqlIMail.Server.DataAccess.ConnectionManager.OpenConnection(SqlConnectionInfo ci)

    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

  • What exactly is your question?

    Based on the error message the named SQL Server instance W6010_01 at the server W6000 was not accessible.

    There are numerous possible reasons for that message. You might want to check the SQL Server log if the instance in question had been disabled during the time in question.



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • Hi,

    The issue is when we are tryingto send test SQL mail or any SQL mail that are the results of jobs are not coming to the recepients. And when we have checked the mail log I couldnot see any logs generated at that particular time. I have tried all the items told by _http://technet.microsoft.com/en-us/library/ms187540(v=sql.105).aspx. But still apart from the mail stop and mail start no other logs generated for mail send.

    The above shared erorr screen details are the one which i got from event viwer.

    Please let me know how can i fix it.

  • _http://blogs.msdn.com/b/sqlserverfaq/archive/2010/03/18/database-mail-failing-with-the-service-queue-externalmailqueue-is-currently-disabled-message.aspx

    I have tried the above steps from the above said blog

    but no luck

    And i have checked both OS and SQL version and build number; Both are same when comparing it with the other instance on that cluster.

    SQL2005; productversion:- 9.00.5000.00;

    productlevel:- SP4; SQLedition :- Enterprise Edition (64-bit)

    OS:- Windows 2003 SP2

  • Please can some help me providing solution to the problem.....

    Even i have the same problem....its a SQL 2005 instance in 4 node Cluster servers.

    Mail is getting queued up and no logs in the mail event log.

    Message

    1) Exception Information

    ===================

    Exception Type: Microsoft.SqlServer.Management.SqlIMail.Server.Common.BaseException

    Message: There was an error on the connection. Reason: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server), connection parameters: Server Name: MSSQL$W6053_01, Database Name: msdb

    Data: System.Collections.ListDictionaryInternal

    TargetSite: Void OpenConnection(Microsoft.SqlServer.Management.Common.SqlConnectionInfo)

    HelpLink: NULL

    Source: DatabaseMailEngine

    StackTrace Information

    ===================

    at Microsoft.SqlServer.Management.SqlIMail.Server.DataAccess.ConnectionManager.OpenConnection(SqlConnectionInfo ci)

    at Microsoft.SqlServer.Management.SqlIMail.Server.DataAccess.DataAccessAdapter.OpenConnection(String dbServerName, String dbName, String userName, String password)

    at Microsoft.SqlServer.Management.SqlIMail.IMailProcess.QueueItemProcesser.ProcessQueueItems(String dbName, String dbServerName, Int32 lifetimeMinimumSec, LogLevel loggingLevel)

    2) Exception Information

    ===================

    Exception Type: System.Data.SqlClient.SqlException

    Errors: System.Data.SqlClient.SqlErrorCollection

    Class: 20

    LineNumber: 0

    Number: 53

    Procedure: NULL

    Server:

    State: 0

    Source: .Net SqlClient Data Provider

    ErrorCode: -2146232060

    Message: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)

    Data: System.Collections.ListDictionaryInternal

    TargetSite: System.Data.ProviderBase.DbConnectionInternal GetConnection(System.Data.Common.DbConnection)

    HelpLink: NULL

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply