• Eskandari (10/6/2012)


    Error when restoring: Object cannot be cast from DBNull to other types. (mscorlib)

    Does the login you're using during the restore have "SA" privs or not?

    If the answer is "no", then try that first.

    If the answer is "yes", then either the backup media is bad or your backup was from a corrupt database to begin with.

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)