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 2012 Forums
 Transact-SQL (2012)
 OPENDATASOURCE vs Linked Server

Author  Topic 

swissivan
Starting Member

30 Posts

Posted - 2013-05-15 : 00:58:53
using linked server
SELECT * FROM mylinkedserver.[mydatabase].[dbo].[mytable]
requires 10s

but when using

SELECT * FROM OPENDATASOURCE('SQLNCLI','Data Source=myserver;User ID=sa;Password=xxxxxx').[mydatabase].[dbo].[mytable]

it lasts for 10 mins and still continue

Anyone could explain what I am not doing correctly? thanks.

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2013-05-15 : 01:32:50
see
http://www.sql-server-performance.com/2007/linked-server/

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page

swissivan
Starting Member

30 Posts

Posted - 2013-05-15 : 22:24:20
quote:
Originally posted by visakh16

see
http://www.sql-server-performance.com/2007/linked-server/

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs




Thank you, we decided to give up on linked server since too much uncertainty.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2013-05-16 : 00:22:00
uncertainty on what? if its a frequent process then linked server is the way to go. Other distributed options are mostly used for adhoc access

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page
   

- Advertisement -