Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Performance question involving linked server

Author  Topic 

tiaa_ns
Starting Member

16 Posts

Posted - 2001-08-14 : 11:54:41
I've stored procedures using many database linked servers. For example, my stored procedure uses the current server data to populate other linked server.

INSERT INTO PROD_SERVER.PROD_DB.dbo.ReportAssoc
SELECT * FROM DEV_SERVER.DEV_DB.dbo.ReportAssoc

This stored proc is on the development server. Actual sql is very complex. Does it have different performance when I write the same stored proc as follows:

INSERT INTO PROD_SERVER.PROD_DB.dbo.ReportAssoc
SELECT * FROM ReportAssoc

I'm creating the dynamic sql query & the source and destination server names will be passed as parameters to the stored procedures. Should I check if it is current server then do not append the qualifier name before the table name?
Thanks.

   

- Advertisement -