i want to run a query on multiple processors. what is the syntax to run a parallel query? please provide a sample query
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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?