Supplements and SQL Hints - Pt 3 - Table Hints
Welcome to part 3 of my month long series on Supplements and SQL Hints. A guide to getting enhancements in the gym and in your database. We're back to the database side of things with Table Hints today. Two weeks ago I touched on overall query hints, those boosters that might help speed your query along and give the query analyzer a little assistance. Table hints are helpers for specific tables in your query. You can use them on multiple tables within the same query, or just one and of course you could stack them. Let's dive in shall we? NOLOCK Hint If you're a regular in the SQL Server community, you're already screaming at me and rightfully so. However, this blog is for beginners as well as seniors in the field so I want to be sure to address it. NOLOCK is used to allow reading of rows without acquiring a lock. Meaning your massive SELECT statement query won't create a blocking scenario with other readers or writers. Conversely, a NOLOCK will allow you to read ...