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