Hi All,
Below query is not returning any row but DB has the value. Can anyone help on this without using dynamic query.
DECLARE @Search1 NVARCHAR(200)                                  
 DECLARE @Search2 NVARCHAR(200)
 SET @Search1 = '1673437'
 SET @Search2 = 'SSN'
 SELECT TOP 10 ID, FirstName, LastName, Age FROM Persons WHERE  @Search2 = @Search1
 
with regards,
stellus.