Expand Minimize
0 out of 1 rated this helpful - Rate this topic

SPACE (SQL Server Compact)

Returns a string of repeated spaces.


SPACE ( integer_expression )
integer_expression

A positive integer, or an expression that can be implicitly converted to int, that indicates the number of spaces. If integer_expression is negative or greater than 255, a null string is returned.

nvarchar

The following example concatenates the last name, a comma, five spaces, and then the first name of each employee in the Employees table.

SELECT [Last Name] + ',' + SPACE(5) + [First Name]
FROM Employees
Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.