TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
SQL Server Transact Basic to Expert - Repeating Spaces N number of times
Karthikeyan Anbarasan
Jun 15, 2011
3.3
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
SQL Server Transact Basic to Expert - Repeating Spaces N number of times
This blog shows how to repeat an empty space N number of times using SPACE function in SQL
Example:
SELECT 'This is a sample'+ SPACE(5) + 'String'
The expected result would be "This is a sample String"
SQL Server Transact Basic to Expert - Repeating Spaces N number of times
Next Recommended Reading
SQL Server Transact Basic to Expert - Configure a Session Timeout to wait for Particular time