dbTalk Databases Forums  

Linked Server: Performance Issue with OpenQuery & SP best practices

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss Linked Server: Performance Issue with OpenQuery & SP best practices in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Ashish Sharma
 
Posts: n/a

Default Linked Server: Performance Issue with OpenQuery & SP best practices - 07-05-2006 , 02:51 AM






We are using the linked server feature of SQL Server 2000 to execute queries
from the local database's stored procedure against the SQL Server database
which is hosted on the remote computer. In our analysis, it was found that
OpenQuery() takes the a lot of time causing the system to have a performance
hit.



Please note that the schema of the remote database is different from the
schema of the local database.



We are looking for the following answers:

a.. Is there any alternative to linked server in SQL Server to fetch the
recordset from the SQL database hosted on the remote machine?
b.. If we use linked server approach, then is there any way to optimize
OpenQuery() call?
c.. What are the best practices to write the stored procedures? Is it
recommended to use temporary tables and cursors?
Ashish



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.