SQL repeat scalar function Simon Hutchinson

​The idea for this post came from Jonathan Heinz who brought to my attention the REPEAT SQL scalar function in a comment to a post. I have to admit I had not heard of it so this post is examples of how I played with it to become familiar with its use.
Being a scalar function it can be used within a Select, Set, or Values statement. Its syntax is:

REPEAT(‘characters-to-repeat’, number-of-times-to-repeat)

I started playing with it in ACS’s Run SQL Scripts, using a Values statement:
Read more » Read More 

Verified by MonsterInsights