Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

loop

Status
Not open for further replies.

SBTBILL

Programmer
Joined
May 1, 2000
Messages
515
Location
US
I need a loop in SQL server. I understand that there is a command called WHILE. Where can I get info on using it.
 
Just make sure you really need a LOOP.
SQL Server is optimized for datasets, not for loops.
Maybe if you post what is your problem, we could figure out a non-loop decision.
Of course this is depending of your needs (sometimes LOOPs are mandatory :o))))

Borislav Borissov
VFP9 SP2, SQL Server 2000/2005.
 
Actually I've been working on a way to do it without a loop that seems to be coming together quite well. Use and update for is greater then period plus a second update for a different field for with is greater then or equal.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top