Quantcast
Channel: TechPint - Sql Server
Viewing all articles
Browse latest Browse all 10

Set two variables using a Select query in a stored procedure.

$
0
0
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


Viewing all articles
Browse latest Browse all 10

Trending Articles