Adding, Dropping, and Configuring Linked Servers

The next few sections show how to add, drop, and configure linked servers through system stored procedures. All these configuration options can also be done very easily with SQL Server Management Studio. The following sections occasionally describe that capability but focus on the SQL commands method because you will usually use this method in real-life production systems. But before we look at an example of a local server connecting to a linked server, let’s first set up a database in another SQL Server instance that will be the target of our linked server examples, create a sample table, and create a stored procedure to execute on the linked server. You can grab the CustomersPlusSQLTable.sql ...

Get Microsoft® SQL Server 2012 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.