Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

Slow Queries with Linked Server

$
0
0
Converting a database from Access 2007 to SQL Server 2014.When I run a query it takes about 25mins in SQL Server while Access takes about couple of mins.When converted to a OpenQuery, it takes about 10mins which is good but its still taking more time than Access.Below is the query:Select a.*INTO ##TemptbleFrom OpenQuery (JDDWH,'Select * From CK500.DDTA.K111 WHERE IABCDJ>113001 And IABCT=''AS'' Or ILDCT=''CD''') As a;This particular Linked Server is AS400 but also have other linked servers which are SQL Server and queries slow there as well.How can I make SQL queries run faster when pulling data from Linked Servers?

Viewing all articles
Browse latest Browse all 3145

Trending Articles