Changing the Collation of the Instance, the Databases, and All Columns in All User Databases: What Could Possibly Go Wrong?

Demystifying What "sqlservr -q" Actually Does (last updated on 2018-08-02) For various reasons, people sometimes find themselves in the unfortunate (and unenviable) situation of having an Instance of SQL Server configured with the wrong Collation. This can often lead to unexpected errors and/or sorting and comparison behavior. People sometimes try to "fix" this problem by… Continue reading Changing the Collation of the Instance, the Databases, and All Columns in All User Databases: What Could Possibly Go Wrong?

The Uni-Code: The Search for the True List of Valid Characters for T-SQL Identifiers, Part 3 of 2 (Delimited Identifiers)

The investigation into valid T-SQL identifier characters continues. Apparently I was not done.

Why Doesn’t CONTEXT_INFO() Return the Exact Value Set by SET CONTEXT_INFO?

If you have ever used SET CONTEXT_INFO to store a simple value, you probably ran into this frustrating behavior ๐Ÿ™€

What’s in a Name?: Inside the Wacky World of T-SQL Identifiers

Come see the complete set of rules governing how you name things in SQL Server

The Uni-Code: The Search for the True List of Valid Characters for T-SQL Regular Identifiers, Part 2

A captivating journey of twists and turns, searching for the mythical list of valid T-SQL identifier characters.

The Uni-Code: The Search for the True List of Valid Characters for T-SQL Regular Identifiers, Part 1

A captivating journey of twists and turns, searching for the mythical list of valid T-SQL identifier characters.

SQLCLR vs. SQL Server 2012 & 2014 & 2016, Part 7: “CLR strict security” โ€“ The Problem Continues … in the Past (Wait, What?!?)

Using SQLCLR on SQL Server 2012, 2014, or 2016? Jealous of the "fun" those on SQL 2017 are having with "CLR strict security"? Come see how you can join the party ๐Ÿ˜ผ

Server Audit Mystery 2: Filtering action_id gets Error Msg 25713

Server Audits allow filtering on certain fields. Two fields claim to be strings, yet don't accept strings for filters. Here's how I figured out filtering on action_id (i.e. the event) ๐Ÿ™‚

Server Audit Mystery 1: Filtering class_type gets Error Msg 25713

Server Audits allow filtering on certain fields. Two fields claim to be strings, yet don't accept strings for filters. Here's how I figured out filtering on class_type (i.e. object type) ๐Ÿ™‚

Stored Procedure / Function / View / Trigger Definitions Can Be Wrong, Even If sp_rename Was Never Used

Some object definitions will be wrong after using sp_rename. But there's another way to have an out-of-sync definition that most are unaware of.