SyntaxFix
Write A Post
Hire A Developer
Questions
If you want a "Null, empty or white space" check, you can avoid unnecessary string manipulation with LTRIM and RTRIM like this.
LTRIM
RTRIM
IF COALESCE(PATINDEX('%[^ ]%', @parameter), 0) > 0 RAISERROR ...