TIL: T-SQL doesn't have constants and variables aren't a good idea

from blog Just Some Code, | ↗ original
Today I learned how to use constants in SQL Server stored procedures. While getting a stored procedure reviewed, I got one comment to remove literal values. This is how to bring constants in T-SQL. SQL Server doesn’t have a keyword for constants. To introduce constants in stored procedures, write literal values next to an explaining comment or...