Home Forums SQL Server 2005 SQL Server Newbies If Statement RE: If Statement
John Mitchell-245523
SSC Guru
Points: 148809
More actions
January 28, 2014 at 3:04 am
#1683833
The first thing to try is to put a SELECT @ADR3 statement in just after you set the value of the variable. Then you can see whether the problem is that the variable is not being set correctly, or that your IF logic is not working as expected.
John