Replicate string function of SQL Server repeats a character or string values for the specified number of time.
Example 1:
Select Replicate('T',5)OutputTTTTT
Example 2:
Select Replicate('Jignesh ',3)Output:
Jignesh Jignesh Jignesh
This code snippet is for Repeat Specific Character or Word in SQL Server 2012 without Loop.
Select Replicate('T',5)OutputSelect Replicate('Jignesh ',3)