DECLARE @msg VARCHAR(50) = 'The part number is not the correct length. The length should be {0} ', CONVERT(VARCHAR, @PartLength);
IF @Length <> @PartLength
THROW 50001, @msg, 1;
How do I resolve this?
ASKER
Microsoft SQL Server is a suite of relational database management system (RDBMS) products providing multi-user database access functionality.SQL Server is available in multiple versions, typically identified by release year, and versions are subdivided into editions to distinguish between product functionality. Component services include integration (SSIS), reporting (SSRS), analysis (SSAS), data quality, master data, T-SQL and performance tuning.
TRUSTED BY
ASKER
I thought that you could add {0} with a comma to fill in the parameter in the correct location.