WHILE statement [T-SQL]

Provides repeated execution of a statement or compound statement.

 Syntax
 Remarks
 Permissions
 Side effects
 See also
 Standards and compatibility
 Example