There are two ways to add a linked server. You can create one by using SQL Server Enterprise Manager interface or by issuing SQL commands. If you use SQL Server Enterprise Manager, you can configure a wider set of options. For more information about adding and using linked servers, see Configuring Linked Servers and Establishing Security for Linked Servers.
Use the system stored procedure sp_addlinkedserver to add a linked Analysis server using SQL commands.
Linking to Microsoft® SQL Server™ 2000 Analysis Services requires more specific syntax than that provided in the SQL Server documentation. Note the required program ID MSOLAP.
sp_addlinkedserver @server = 'server', @srvproduct = 'product_name',
@provider = 'MSOLAP', @datasrc = 'data_source',
@catalog = 'catalog'
@server = 'server'
This is the name of the Analysis server as it is referenced in SQL Server. This name is used to identify the linked server in pass-through queries.
@srvproduct = 'product_name'
The product name of the OLE DB data source to be added as a linked server. Leave the product_name value NULL.
@provider = 'MSOLAP'
The progID of the OLE DB Provider for Analysis Services.
@datasrc = 'data_source'
The network name of the computer hosting Analysis Services.
@catalog = 'catalog'
The name of the Analysis Services database that contains cubes to be queried.