How do I set a variable to the result of select query without using a stored procedure?
I want to do something like: OOdate DATETIME
SET OOdate =
You could use:
declare @foo as nvarchar(25) select @foo = 'bar' select @foo