Table Hint UPDLOCK and LOCK ESCALATION

Table Hint UPDLOCK and LOCK ESCALATION

When using table hints, a few rules should be recommende, which – if ignored – can quickly lead to performance problems. In the database of one of our customer’s software, UPDLOCK is used as a table hint to force a serialization of processes....
Is SWITCH PARTITION a bad idea?

Is SWITCH PARTITION a bad idea?

How can SWITCH PARTITION be a bad idea? Do you work with partitioning and know the many advantages that this technology offers? Do you use this technology in DWH to improve workloads or in OLTP systems to optimize scaling? Be careful with SWITCH PARTITION. It should...

INDEX REBUILD is not FREEPROCCACHE

Do you also think that an INDEX REBUILD triggers a FREEPROCCACHE? Things always get a little quieter between Christmas and New Year and you do things that you don’t have as much time for during the rest of the year. For example, you might watch a few SQL...