Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

When joining tables from different databases on the same instance are statistics from the source DB used?

$
0
0

Hello,

I wanted to ask if statistics are used by the SQL server engine when joining 2 tables from different databases? The only hint I found is in this document:

https://msdn.microsoft.com/en-us/library/ms177634.aspx?f=255&MSPPError=-2147217396

"Because SQL Server considers distribution and cardinality statistics from linked servers that provide column distribution statistics, the REMOTE join hint is not required to force evaluating a join remotely. The SQL Server query processor considers remote statistics and determines whether a remote-join strategy is appropriate. REMOTE join hint is useful for providers that do not provide column distribution statistics."

This is not exactly the YES to my question, can someone enlighten me?

Thanks,

Richard



Viewing all articles
Browse latest Browse all 7129

Trending Articles



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