About 2,680,000 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. SQL Server: FOR LOOP - TechOnTheNet

    Learn how to simulate the FOR LOOP in SQL Server (Transact-SQL) with syntax and examples. In SQL Server, there is no FOR LOOP. However, you simulate the FOR LOOP using the WHILE LOOP.

  3. SQL FOR Loop Alternatives - SQL Server Tips

    Dec 13, 2021 · Learn different ways to create FOR Loops using T-SQL such as using WHILE loops, cursors, tally tables and more.

  4. FOR Clause (Transact-SQL) - SQL Server | Microsoft Learn

    Nov 18, 2025 · Suppress unwanted line breaks: You might use SQL Server Management Studio (SSMS) to issue a query that uses the FOR XML clause. Sometimes a large amount of XML is returned and …

  5. For Loop in SQL Server Stored Procedure

    Mar 7, 2024 · In this SQL Server tutorial, you will understand the FOR loop in SQL Server stored procedure and learn how to use it. As a database developer, if you are familiar with SQL Server, then …

  6. Loops in SQL Server - TutorialsTeacher.com

    In SQL Server, a loop is the technique where a set of SQL statements are executed repeatedly until a condition is met.

  7. FOR Loop in SQL Server - Developer Publish

    Nov 20, 2024 · In this post, you'll learn how to use FOR Loop in SQL Server with some good examples.

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

    Perhaps you can explain what you will be doing with this data in more detail. In most cases you can easily write a single SQL query that will do what you need to get done in one action instead of …

  9. Syntax of for-loop in SQL Server - JanBask Training

    Apr 17, 2025 · What is the structure of a for-loop in SQL Server? In SQL Server, the FOR loop is not as commonly used as in programming languages, but it follows a specific syntax for iterating over a …

  10. Syntax of for-loop in SQL Server - matheusmello.io

    Sep 2, 2023 · Welcome, SQL Server enthusiasts! 🎉 In today's blog post, we'll dive into the exciting world of T-SQL and explore the syntax of the FOR loop. 🔄 Whether you're a beginner or an experienced …