About 51 results
Open links in new tab
  1. Syntax of for-loop in SQL Server - Stack Overflow

    May 20, 2011 · SQL is a very different language compared to what you're used to. It's focused on what, not how. You tell SQL Server what results you want, and let it figure out how to produce the answer. …

  2. How do I loop through a set of records in SQL Server?

    224 How do I loop through a set of records from a select statement? Say I have a few records that I wish to loop through and do something with each record. Here's a primitive version of my select statement:

  3. Como fazer for loop em SQL SERVER? - Stack Overflow em Português

    Oct 26, 2016 · Como fazer for loop em SQL SERVER? Perguntada 9 anos, 2 meses atrás Modified 9 anos, 2 meses atrás Vista 60mil vezes

  4. sql - While Loop to Iterate through Databases - Stack Overflow

    I was wondering if someone could help me with creating a while loop to iterate through several databases to obtain data from one table from two columns. this is was I have done so far. nothing wo...

  5. sql server - Is there a way to loop through a table variable in TSQL ...

    declare @databases table ( DatabaseID int, Name varchar(15), Server varchar(15) ) -- insert a bunch rows into @databases Is declaring and using a cursor my only option if I wanted to iterate through …

  6. SQL Server FOR EACH Loop - Stack Overflow

    Jan 1, 2010 · SQL is primarily a set-orientated language - it's generally a bad idea to use a loop in it. In this case, a similar result could be achieved using a recursive CTE:

  7. Can I loop through a table variable in T-SQL? - Stack Overflow

    0 Following Stored Procedure loop through the Table Variable and Prints it in Ascending ORDER. This example is using WHILE LOOP.

  8. In SQL Server, how to create while loop in select

    Nov 10, 2013 · In SQL Server, how to create while loop in select Asked 12 years, 2 months ago Modified 9 years, 5 months ago Viewed 285k times

  9. Do while loop in SQL Server 2008 - Stack Overflow

    Dec 20, 2010 · Is there any method for implement do while loop in SQL server 2008?

  10. sql loop through each row in a table - Stack Overflow

    23 Based on the caption of your question. This is the way I loop through each row of a table using a variable of type TABLE: