title: T-SQL Space Before Capital Letters
body: <p>The question is self explanatory. Could you please point out a way to put spaces between each capital letter of a string.</p>
  
  <pre><code>SELECT dbo.SpaceBeforeCap('ThisIsATestString')
  </code></pre>
  
  <p>would result in</p>
  
  <pre><code>This Is A Test String.
  </code></pre>