I am attempting to set variables whose names are dynamic in a stored procedure:
DECLARE @var01 varchar(50) DECLARE @var02 varchar(50) ... DECLARE @var30 v
You can also use stored procedure sp_executesql which allows passing parameters. Although I recommend to use additional table to store variables.