• Hello,

    Just one minor amendment so that the script runs Okay on a case sensitive Server:

    SELECT @crdate=crdate FROM sysdatabases WHERE name='tempdb'

    Regards,

    John Marsh

    www.sql.lu
    SQL Server Luxembourg User Group