Finding Special Characters with PATINDEX
Applies to SQL Server 2019, 2022 and 2025. Sooner or later every DBA gets asked to find special characters in a column: the stray tab that breaks an export, the apostrophe that upsets a downstream system, or the “space” that isn’t really a space. On SQL Server 2019 and 2022 the tool for the job…