July 16, 2012 at 4:53 pm
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
July 17, 2012 at 12:39 am
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
July 17, 2012 at 12:08 pm
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).
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply