<p>I have lots of article store in MS SQL server 2005 database in a table called Articles-</p>

<pre><code>"Articles (ArticleID, ArticleTitle, ArticleContent)"
</code></pre>

<p>Now I want some SP or SQL query which could return me similar Article against any user's input (very much like "Similar Posts" in blogs OR "Related Questions" in stackoverflow). The matching should work on both ArticleTitle and ArticleContent. The query should be intelligent enough to sort the result on the basis on their relevancy.</p>

<p>Is it possible to do this in MS SQL Server 2005?</p>

First of all you need to define what article similarity means.
For example you can associate some meta information with articles, like tags.
To be able to find similar articles you need to extract some features from them, for example you can build full text index.
You can take advantage of full text search capability of MSSQL 2005
```
```
-- Assuming @Title contains title of current articles you can find related articles runnig this query  
SELECT * FROM Acticles WHERE CONTAINS(ArticleTitle, @Title)
```
```