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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

looping through the records without using cursor???

Status
Not open for further replies.

mrpro

Programmer
Oct 11, 2004
64
0
0
GB
hi experts,
can any one give me a thought how can we write a stored procedure which loops through the records.
the basic purpose i need this query is to update each record with a new value by looping the records..

thanks for any help

 
You don't need a loop to update dates if they are on the weekend. Just use a CASE clause in your update statement.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top