Is it possible to change a variable type in SQL Server? Something like when you have
DECLARE @a INT;
SET @a = 3
but later you want to use @a to store VARCHAR? Is there a way to undeclare it, change the data type it can store? Does T-SQL allow this?
1 Answer