Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Linked Server connection Test error. Expand / Collapse
Author
Message
Posted Monday, July 16, 2012 4:53 PM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Wednesday, August 20, 2014 4:30 AM
Points: 219, Visits: 689
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

Post #1330452
Posted Tuesday, July 17, 2012 12:39 AM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Monday, August 11, 2014 3:08 PM
Points: 72, Visits: 199
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
Post #1330529
Posted Tuesday, July 17, 2012 12:08 PM


SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Friday, August 15, 2014 5:01 PM
Points: 1,613, Visits: 1,539
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
Twitter: @SQLSoldier
My book: Pro SQL Server 2008 Mirroring
Microsoft Certified Master: SQL Server 2008
Principal DBA: Outerwall, Inc.
Also available for consulting: SQL DBA Master
Post #1330959
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse