snakehips2000
Programmer
Can someone please tell me why this doesn't work?
Thanks
Code:
declare @sql varchar(100)
SET @sql='DECLARE @myvar int'
EXEC(@sql)
SET @myvar=5
SELECT @myvar
Thanks