• above solution is not working.

    below is the error:

    Msg 208, Level 16, State 1, Procedure IndexOptimize, Line 187

    Invalid object name 'dbo.DatabaseSelect'.

    Thank You.

    Regards,
    Raghavender Chavva