Home Forums SQL Server 2005 SQL Server 2005 Security "Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server conn " RE: "Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server conn "

  • I'm having the exact same issue when using a linked server on a SQL Server 2005 instance (target is a SQL 2000 instance).

    The exact error is:

    OLE DB provider "SQLNCLI" for linked server "server\instance" returned message "Communication link failure".

    Msg 10054, Level 16, State 1, Line 0

    TCP Provider: An existing connection was forcibly closed by the remote host.

    Msg 18452, Level 14, State 1, Line 0

    Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection.

    The user getting this error is able to successfully connect to the target instance on SSMS, while logged on the source sql 2005 instance where the linked server is created.

    The linked server is created by the following command (note that security is configured for windows integrated auth., NOT SQL auth.):

    EXEC sp_addlinkedserver 'server\instance2k', N'SQL Server';

    The user is getting the error above after running:

    select * from [server\instance2k].DBNAME.dbo.TableName;

    I find this issue odd because, as I mentioned, the user is able to connect with no problems to server\instance2k on SSMS, while logged on the sql2005 instance.

    I strongly suspect this is the exact same problem as that posted initially on this thread.

    __________________________________________________________________________________
    SQL Server 2016 Columnstore Index Enhancements - System Views for Disk-Based Tables[/url]
    Persisting SQL Server Index-Usage Statistics with MERGE[/url]
    Turbocharge Your Database Maintenance With Service Broker: Part 2[/url]