Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
mary_itohan
Posting Yak Master
191 Posts |
Posted - 2008-09-16 : 09:58:41
|
Hello,how do u exit a loop ?here is my code ?thankswhile ( @min <= @max)beginset @password = charindex(left(@each_person,(len(@defaultcountry)+len(@min))),@s)set @min = @min + 1end How do i exit, when the condition @password is met, ie its not 0_____________________Yes O ! |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2008-09-16 : 10:02:31
|
| use BREAK http://doc.ddart.net/mssql/sql70/ba-bz_8.htm |
 |
|
|
mary_itohan
Posting Yak Master
191 Posts |
Posted - 2008-09-16 : 10:07:43
|
| tnx_____________________Yes O ! |
 |
|
|
|
|
|