Wed, 12/09/2009 - 21:59
SET @Password = ( SELECT Value1,Value2 FROM [dbo].[Table1] WHERE [Expr1])
I am trying to get both values 'Value1' and 'Value2' in two variables to be used in same SP in next query. Is it possible or do I have to write two queries for this. Is it there a concept of arrays in sql server
Use TSql variables in the select query. i.e As in your case