Quantcast
Channel: Forum SQL Server Database Engine
Viewing all articles
Browse latest Browse all 15889

Linked Server query to Sybase ASE very slow

$
0
0

On my MSSQL 2008R2 64bit server, I setup a linked server to Sybase by using Sybase ASE OLEDB driver.

When I tried to run a SELECT/UPDATE/DELETE linked server query which should be covered by the table's cluster index in Sybase, it takes 30 mins to return. I found Sybase executes these remote statements by using Table Scan.

But when I run exactly the same statement locally in Sybase, it returns very fast by using clustered index seek.

Why there's such a big difference between them?

Actually this linked server is intended to be created for transaction replication from MSSQL to Sybase, which I found it's possible (by referring this post http://blogs.msdn.com/b/wwerner1/archive/2011/06/08/replication-sql-server-to-sybase.aspx). As the UPDATE/DELETE remote statements are generated by mssql distribution agent, I can't do anything on the remote statements.

Any other things I can do? Such as on the linked server options, choose another driver?


Viewing all articles
Browse latest Browse all 15889

Trending Articles