• This below link does exactly what you need.

    http://www.sqlmag.com/Article/ArticleID/38790/sql_server_38790.html

    Cheers,
    Sugeshkumar Rajendran
    SQL Server MVP
    http://sugeshkr.blogspot.com