i want to run a query on multiple processors. what is the syntax to run a parallel query? please provide a sample query
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
You don't: the optimizer decides based on the "cost" of the query (and some other factors)
See BOL: Parallel Query Processing
Now, you can limit parallelism with MAXDOP or change the cost threshold, but it's not something I'd do.
Why do you want to explicitly set this?