.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Sandeep Singh

Home >> Articles >> DataBase >> Post New Resource Bookmark and Share   

 Subscribe to Articles

How to create Linked Server in Sql Server?

Posted By:Jean Paul       Posted Date: November 12, 2010    Points: 50    Category: DataBase    URL: http://www.dotnetspark.com  

Linked Servers helps us configuring a remote server locally and helps querying (as well as data copying) easier

Open the Sql Server Management Studio and in the Server Objects > Linked Servers, right click select New Linked Server menu.


In the appearing screen enter the actual remoteserver alias name as "RS"


Enter Product Name=', Data source=[YourRemoteServerInstanceName], Catalog=[DbName]

and press Ok button.

In the security tab enter map the sa user like following screen.

Note: If you are using another user to connect to the current server, use that user name for mapping.



Press Ok to complete the form.

Testing the Server

You can type any query with the prefix REMOTESERVER to access the tables.

SELECT * FROM RS.Database.dbo.Table

If you can see the results,  Congratulations!  You have done with linked servers

 Subscribe to Articles


Further Readings:


No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More Articles on C#, ASP.Net, Vb.Net, SQL Server and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend