• Hello wthigo,

    before executing the stored procedures you've connected to the database ?

    For example:

    [font="Comic Sans MS"]USE TestDB

    EXEC USP_ExecReorgRebuildIndex 'TestDB', 0, -1, 10[/font]

    Bye

    Sergio