How to check Palindrome in SQL Server
<p>To check palindrome I am using <code>REVERSE</code> function of SQL Server. </p>

<p>I wanted to check how reverse function works with this sample code:</p>

<pre><code>declare @string nvarchar
set @string = 'szaaa'
SELECT REVERSE(@string)
</code></pre>

<p>But the output was 's' in case of 'aaazs' which I expected. How should I capture the reverse? Is there any better way to find palindrome?</p>