Microsoft
Software
Hardware
Network
Question : multiple conditions in WHILE
what is wrong in the foll syntax:
WHILE (@Var1 < 1 AND @Var2 < 1)
This does not seem to be honored. When any one of the variable become >1, the loop breaks.
thanks
Answer : multiple conditions in WHILE
exactly.
when any of the 2 > 1, you have:
WHILE ( false AND true ) which is FALSE
you seem to want:
WHILE (@Var1 < 1 OR @Var2 < 1)
Random Solutions
Backup Exec will not connect server after move
PHP_sessions
Access 2007 - Query Question
return multiple resultsets with TsqlQuery
Cant access internet through Cisco PIX 515
VB.net query problem
Locking a header & a footer in Microsoft Word 2003
Group and ungroup a password-protected sheet?
Caseware version 3.1. old Dos accounting software
Excel 2007 viewer error in Windows Server 2008 R2 terminal server (crash)