Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Open Query Timing out

$
0
0

I have an SQL job that uses openquery on a linked server and successfully transfers a table of about 30 million records and it takes about 30 minutes.

I want to make sure all the rows copied successfully so I run the same query but with count instead but I get a timeout on the SQL job.

The error message: "Execution terminated by the provider because a resource limit was reached"

I have no problems running the query on the hosting server.  It takes 4 minutes.  There are a lot of properly ordered where statements in the query too.

help?

cs



Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>