July 9, 2010 at 8:27 pm
server machine 1(IP = 192.114.0.1, Host = local1, Database = MyDB1,
Table = customer1 , filed = cus_id, cus_name, cus_addr)
server machine 2(IP = 192.114.0.2, Host = local2, Database = MyDB2,
Table = customer2 , filed = cus2_id, cus2_name, cus2_addr)
Suppose I write a stored Procedure in the server machine 1 and to
extract data from the server machine 2 (Table = customer2) to put the server machine 1 (Table = customer1)
EX
CREATE PROCEDURE dbo.sp_addlinkedserver(
@server = servername ,
@provider = ‘MSDASQL’,
@provstr = ‘DRIVER={SQL Server};SERVER=MyDb2;UID=user;PWD=password;’
)
AS
July 9, 2010 at 9:05 pm
I'm not following what it is that your asking for???
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply