Need to find all the variable list within the procedure with there data type and assigned values.E
For e.g.
procedure have 2 variables
@a int ,@b varchar(100)
set @a= id from t1
set @b=name from t1
the i need out put as
Variable declared asassigned type
@aint int from table t1
@bvarchar(50)varchar from table t1