Thanks for the information Alexander.
We are on SQL 2008 R2, last restarted on 11/8, so it sounds like something else is going on. I was running a few queries in SSMS and LINQ against these tables on 12/3 but I can't see how that would cause this. Is that something to be wary of?
Unfortunately this is not a production box so I don't have backups of the repository, only the databases.
In place of restoring backups how horrible would it be to: stop the service, update tocid for all tables with tocid (I see 55, not sure if it exists by other names), reseed the identity and restart the service?
If this happened in a production repositry and we lost a few days before noticing I think restoring from a backup would be much more difficult (given active workflows, etc.) and would want to explore other options.
All things considered there *should* be enough tocids left to continue with the repository, I just want to understand what caused this so we can avoid it, especially in a production repository.
I don't see any indication of a runaway workflow on the server.