Thank this author by sharing:
By Pratima Paudel,
I am contributing a script int his forum for the first time so please forgive me if i am not doing in a best way. But this script works good ; i have tested it.
As a member of SQLServerCentral, you get free access to loads of fresh content: thousands
of articles and SQL scripts, a library of free eBooks, a weekly database news roundup,
a great Q & A platform… And it’s our huge, buzzing community of SQL Server Professionals
that makes it such a success.