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?
Who is Participating?
tigin44Connect With a Mentor Commented:
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.
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.

EE Cleanup Volunteer
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.