• There were some miscellaneous characters in the below statement that was causing that issue.

    I have attached the image highlighting the code that have those characters in it.

    Also, I have updated the script on the site.

    Removed the spaces infront of the "u.name" from the below code section.

    EXEC sp_MSForEachdb

    '

    SELECT ''?'',

    u.name,

    Kindest Regards,
    Shivaram Challa
    (http://challa.net - Home of the "Excel to CSV converter & Browsepad applications".)
    Forum Etiquette: How to post data/code on a forum to get the best help[/url]