SPACE (Transact-SQL)
SQL Server 2008 R2
Returns a string of repeated spaces.
The following example trims the last names and concatenates a comma, two spaces, and the first names of people listed in the Person table in AdventureWorks2008R2.
USE AdventureWorks2008R2; GO SELECT RTRIM(LastName) + ',' + SPACE(2) + LTRIM(FirstName) FROM Person.Person ORDER BY LastName, FirstName; GO