Hi I use loads of linked servers particularly with Excel to import items, update prices and all sorts of other useful things. This is the first time I have ever tried directly linking RMS with a database written by someone else. It works joining it with a combination of barcodes and supplier.reordernumber(s) to run a report highilighting items that our supllier has on special offer giveing a really easy way of ordering same.
I was suprised how easy it was and how powerful especially being able to drill down from the itemlookupcode. Defininately a sucess - wished I hadden't waited a year to get around to it.
/****** Object: LinkedServer [Server\database] Script Date: 10/26/2013 15:31:54 ******/
EXEC master.dbo.sp_addlinkedserver @server = N'Server\database', @srvproduct=N'SQL Server'
/* For security reasons the linked server remote logins password is changed with ######## */
EXEC master.dbo.sp_addlinkedsrvlogin @rmtsrvname=N'Server\database',@useself=N'False',@locallogin=NULL,@rmtuser=N'sa',@rmtpassword='########'
EXEC master.dbo.sp_addlinkedsrvlogin @rmtsrvname=N'Server\database',@useself=N'True',@locallogin=N'login',@rmtuser=NULL,@rmtpassword=NULL
GO
EXEC master.dbo.sp_serveroption @server=N'Server\database', @optname=N'collation compatible', @optvalue=N'false'
GO
EXEC master.dbo.sp_serveroption @server=N'Server\database', @optname=N'data access', @optvalue=N'true'
GO
EXEC master.dbo.sp_serveroption @server=N'Server\database', @optname=N'dist', @optvalue=N'false'
GO
EXEC master.dbo.sp_serveroption @server=N'Server\database', @optname=N'pub', @optvalue=N'false'
GO
EXEC master.dbo.sp_serveroption @server=N'Server\database', @optname=N'rpc', @optvalue=N'true'
GO
EXEC master.dbo.sp_serveroption @server=N'Server\database', @optname=N'rpc out', @optvalue=N'true'
GO
EXEC master.dbo.sp_serveroption @server=N'Server\database', @optname=N'sub', @optvalue=N'false'
GO
EXEC master.dbo.sp_serveroption @server=N'Server\database', @optname=N'connect timeout', @optvalue=N'0'
GO
EXEC master.dbo.sp_serveroption @server=N'Server\database', @optname=N'collation name', @optvalue=N'SQL_Latin1_General_CP1_CI_AS'
GO
EXEC master.dbo.sp_serveroption @server=N'Server\database', @optname=N'lazy schema validation', @optvalue=N'false'
GO
EXEC master.dbo.sp_serveroption @server=N'Server\database', @optname=N'query timeout', @optvalue=N'0'
GO
EXEC master.dbo.sp_serveroption @server=N'Server\database', @optname=N'use remote collation', @optvalue=N'true'