{"title":"Configuring Query Hints for Optimizing SQL Server Performance with Business Central","url":"https://jonas-paprotka.de/docs/dev-itpro/administration/sql-server-query-hints/","by":"JOP-AL","license":"Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/administration/sql-server-query-hints, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/administration/sql-server-query-hints","source":{"name":"Business Central developer and IT pro docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb","commit":"828b6ee72fcd75755627cd6011f3d20899217ab2","date":"2026-11-19"},"checked":"2026-11-19","description":"Enable query hints in a database for optimizing performance.","date":"2024-04-16","meta":{"topic":"concept-article"},"outline":[{"level":1,"title":"Configuring Query Hints for Optimizing SQL Server Performance with Business Central","slug":"configuring-query-hints-for-optimizing-sql-server-performance-with-business-central","at":0,"chars":1808},{"level":2,"title":"Related information","slug":"related-information","at":1550,"chars":258}],"text":"# Configuring Query Hints for Optimizing SQL Server Performance with Business Central\nOn its own, SQL Server query optimizer will try to select the best execution plan for queries. Most of the time, query optimizer makes the right choice. https://learn.microsoft.com/sql/t-sql/queries/hints-transact-sql-query are strategies that can be enforced by the SQL Server query processor to override any execution plan that the query optimizer might select for a query. The Business Central Server instance includes configuration settings that let you enable or disable the use of the following hints on queries in the database:\nHint|Description|Used by default\n--------|---------------|--\nFORCE ORDER|Instructs the query optimizer to preserve the join order that is indicated by the query syntax.<|No\nLOOP JOIN|Instructs the query optimizer to use LOOP JOIN for all join operations in the whole query.|No\nOPTIMIZE FOR UNKNOWN|Instructs the query optimizer to use statistical data instead of the initial values for all local variables when the query is compiled and optimized, including parameters created with forced parameterization.<br /><br /> If you want this hint to be used in SQL queries, then set DisableQueryHintOptimizeForUnknown to (false).|No\nLearn more about configuring the Business Central Server instance in Configuring Business Central Server<configure-server-instance>.\n> IMPORTANT\n> We recommend that you do not change the query hint settings from the default values unless you are certain that the change will better suit your scenario.\n## Related information\nOptimizing SQL Server Performance with Business Central<optimize-sql-server-performance>\n../deployment/installation-considerations-for-microsoft-sql-server\nMicrosoft SQL Server documentation<https://learn.microsoft.com/sql/sql-server/>"}