Linked Server connection Test error.

  • Hi Im trying to create a linked server which is throwing the below error:

    "Linked server has been updated but failed to connection test. Do you want to edit the linked server properties?

    An exception occurred while executing the transact sql Statement or Batch.

    Login failed for the user xxxxxxxxxxxx"

    Linked server properties:

    /****** Object: LinkedServer [SQL Instance Name] Script Date: 07/16/2012 15:51:12 ******/

    EXEC master.dbo.sp_addlinkedserver @server = N'SQL Instance Name', @srvproduct=N'SQL Server'

    /* For security reasons the linked server remote logins password is changed with ######## */

    EXEC master.dbo.sp_addlinkedsrvlogin @rmtsrvname=N'TK5BIVELUATODS1\BIVELUATSQLODS1',@useself=N'False',@locallogin=NULL,@rmtuser=N'DBGrowthMSDBAccess',@rmtpassword='########'

    GO

    EXEC master.dbo.sp_serveroption @server=N'SQL Instance Name', @optname=N'collation compatible', @optvalue=N'false'

    GO

    EXEC master.dbo.sp_serveroption @server=N'SQL Instance Name', @optname=N'data access', @optvalue=N'true'

    GO

    EXEC master.dbo.sp_serveroption @server=N'SQL Instance Name', @optname=N'dist', @optvalue=N'false'

    GO

    EXEC master.dbo.sp_serveroption @server=N'SQL Instance Name', @optname=N'pub', @optvalue=N'false'

    GO

    EXEC master.dbo.sp_serveroption @server=N'SQL Instance Name', @optname=N'rpc', @optvalue=N'false'

    GO

    EXEC master.dbo.sp_serveroption @server=N'SQL Instance Name', @optname=N'rpc out', @optvalue=N'false'

    GO

    EXEC master.dbo.sp_serveroption @server=N'SQL Instance Name', @optname=N'sub', @optvalue=N'false'

    GO

    EXEC master.dbo.sp_serveroption @server=N'SQL Instance Name', @optname=N'connect timeout', @optvalue=N'0'

    GO

    EXEC master.dbo.sp_serveroption @server=N'SQL Instance Name', @optname=N'collation name', @optvalue=null

    GO

    EXEC master.dbo.sp_serveroption @server=N'SQL Instance Name', @optname=N'lazy schema validation', @optvalue=N'false'

    GO

    EXEC master.dbo.sp_serveroption @server=N'SQL Instance Name', @optname=N'query timeout', @optvalue=N'0'

    GO

    EXEC master.dbo.sp_serveroption @server=N'SQL Instance Name', @optname=N'use remote collation', @optvalue=N'true'

    GO

    EXEC master.dbo.sp_serveroption @server=N'SQL Instance Name', @optname=N'remote proc transaction promotion', @optvalue=N'true'

    GO

  • I think you are trying to create it from a Different server. Please create the Linked server where you want to connect to the other server. And also make sure you the permissions to create Linked Servers.

    Please RDP into the server with ADMIN permission on SQL and Windows on the Server where you want to create the linked for the other.

    Thanks

    S.R.Kundur

  • You can create it remotely, but you can't test it unless you are local on the server. If using the GUI, just ignore the errors and tell it to create it or just use T-SQL to create it.

    If you want to be able to use it remotely, you either need to configure kerberos and constrained delegation (preferred) or use SQL authenticated logins (not preferred).


    My blog: SQL Soldier[/url]
    SQL Server Best Practices:
    SQL Server Best Practices
    Twitter: @SQLSoldier
    My book: Pro SQL Server 2008 Mirroring[/url]
    Microsoft Certified Master: SQL Server, Data Platform MVP
    Database Engineer at BlueMountain Capital Management[/url]

Viewing 3 posts - 1 through 2 (of 2 total)

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