SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2012 Forums
 Other SQL Server 2012 Topics
 How to create a SQL Server link server
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

jaide smith
Starting Member

USA
1 Posts

Posted - 01/19/2013 :  07:36:01  Show Profile  Reply with Quote
If select SQL linked server in the GUI you can't specify a different name for the SQL Server. You can only use the SQL host name as the Link Server name.

Here is an example of creating a Linked Server via script to specify link server name myGX620 for the SQL Server host name GX620.



/****** Object: LinkedServer [myGX620] Script Date: 04/07/2009 22:49:10 ******/

EXEC master.dbo.sp_addlinkedserver

@server = N'myGX620',

@srvproduct=N'MSSQL',

@provider=N'SQLNCLI',

@provstr=N'PROVIDER=SQLOLEDB;SERVER=GX620'



EXEC master.dbo.sp_addlinkedsrvlogin @rmtsrvname=N'myGX620',

@useself=N'False',@locallogin=NULL,@rmtuser=N'sa',@rmtpassword='P@ssword!'

Internet Marketing Auckland | Web Design Auckland

srimami
Posting Yak Master

160 Posts

Posted - 02/06/2013 :  00:12:56  Show Profile  Reply with Quote
Hi Smith,

What is expected from users related to link server? You have provided solution related to link server.

Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52317 Posts

Posted - 02/06/2013 :  01:42:40  Show Profile  Reply with Quote
see the steps involved

http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=164892

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000