exec sp_addlinkedserver N'<linked server name>',@srvproduct=N"", @provider=N'SQLNCLI', @datasrc=N'<host name>'
exec sp_addlinkedsrvlogin N'<linked server name>',@useself=N'FALSE',@rmtuser=N'<hfm db>',@rmtpassword=N'<hfm db password>'
exec sp_serveroption @server=N'<linked server name>',@optname=N'rpc',@optvalue=N'true'
exec sp_serveroption @server=N'<linked server name>',@optname=N'rpc out',@optvalue=N'true'
Por ejemplo, para crear un servidor con el nombre ToTestSystem vinculado a sqlserver on stm10082, donde las credenciales de la base de datos de HFM de SQL Server de origen son hfm/hyperion:
exec sp_addlinkedserver N'ToTestSystem',@srvproduct=N"",@provider=N'SQLNCLI',@datasrc=N'STM10082.xxx.COM'
exec sp_addlinkedsrvlogin N'ToTestSystem',@useself=NFALSE',@rmtuser=N'hfm', @rmtpassword=N'password'
exec sp_serveroption@server=N'ToTestSystem',@optname=N'rpc',@optvalue=N'true'
exec sp_serveroption @server=N'ToTestSystem',@optname=N'rpc out',@optvalue=N'true'