[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 987
  • Last Modified:

Supress ERROR LOG "join order enforced" warning on join hints

Sometimes I use join hints. That produces a warning record in the SQL Error log:
Procedure XYZ output the following:  'Warning: The join order has been enforced because a local join hint is used.' on every execution.

Is there a way to supress these warning messages?
What is the cost of writing these messages to my procedure performance?
0
aionine
Asked:
aionine
1 Solution
 
tigin44Commented:
Join hints enforces the sql engine use different execution plans then the server choose.. Since the cost of these plans do differ sql a-warns you about the usage of the join hint. If you are not sure that you really need that hints my recommendation is that do not use the join hints... In order to decide wether to to use or not you can measure the query performnces with hints and without hints. Wich is perforning fast choose that one.
Regars.
0
 
Mark WillsTopic AdvisorCommented:
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I will leave the following recommendation for this question in the Cleanup topic area:
   Acccept: tigin44 {http:#22915994}

Any objections should be posted here in the next 4 days. After that time, the question will be closed.

mark_wills
EE Cleanup Volunteer
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now