• Where did you get that code?!

    Actually, if you can't even restore the database, you've nothing to run a DBCC check against.  Is the client saying that they've never backed up the database in the past, or if they have, that all their backup files were destroyed in what I assume was a ransomware attack?  If that's the case, the best you can do may be to advise your client to make sure that backups are moved off site as early and as frequently as possible.

    John