The following works in MySQL:
DECLARE myInt INT(20);
DECLARE myDate DATETIME;
SELECT someInt, someDate
INTO myInt, myDate
FROM someTable
WHERE myName = someName
Is it possible to do something like that in SQL Server?
SQL Server complaints about "Incorrect syntax" in the INTO line f that is attempted local @variables.