In this post, we will discuss how to use while loop in SQL server 2008.
Also, you can check out my previous posts on
Below is the syntax to use While Loop in SQL Server:
DECLARE @flag INT
SET @flag = 0
WHILE @flag <= 5
SET @flag = @flag + 1
PRINT ‘You are in ‘ + CAST (@flag AS NVARCHAR(10)) +’ Loop’
The out put will come as shown in the figure below.
Download FREE SharePoint 2019 Installation PDF Guide
This FREE PDF contains, Steps by step guide to install SharePoint 2019 Preview, prerequisites, hardware and software new features. First impression to SharePoint Server 2019 new modern site, modern lists and modern document libraries.
You May Also like the Following SharePoint Online Tutorials: