Discussion in 'T-SQL Performance Tuning for Developers' started by vvkp, Aug 20, 2003.
Can anybody put some details about how to store a value in variable Thanks in advance!
You mean in a stored procedure? if so, you have to declare the datatype of the variable
ans SELECT @var = value or SET @var = value.
If you need this inside a select statement, you would do it with a select statement
Separate names with a comma.