SQL Server Question

What are the differences between below two expressions, and which one is good practice to use?

declare @parm1 char(2);

set @parm1='Q';

select @parm1;


declare @parm2 varchar(2);

set @parm2='Q';

select @parm2;


  Devbrat Tripathi

Post Your Answers:

Please use the CODE HIGHLIGHT Button to format/highlight your codes if any