• yeah you'll need to go thru the script and tweak it;

    for example @ line 151 there's one section here that fails if you have longer database names than 20 characters:

    CREATE TABLE #TempForFileStats([Server Name] nvarchar(40),

    [Database Name] nvarchar(20),

    that cascades into an error in "section 5" later in the script; as i have a few databases with names longer than 20 chracters.

    there's other errors,, now i see, depending on settings/values on the server being scanned.

    also errors on Section 11, the code must be wrong for sp_helpremotelogin, and section 14 gives this error:

    Msg 2812, Level 16, State 62, Line 8

    Could not find stored procedure 'sp_locks'.

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!