WHERE 1 = 1 – good practice?

How often do you read on blogs and/or social media platforms that it simplifies work to use „1 = 1“ as the first statement in a WHERE clause, followed by „AND…“ in subsequent lines? Some comments point out that it’s pointless, while...
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....