I've inherited a SQL Server Database that for some odd reason the developers didn't use Identity to auto increment the primary key. (maybe it was once an Oracle one, who knows).
Now,... since the database is accessed from countless clients, I presume that the "next ID" must be stored in the DB somewhere so that they don't conflict with each other. If I attempt to add the record by hand it works, but then when the client creates a record it fails saying the key is already in use.
How can I determine what table it's storing it in, or can you suggest somewhere else that the ID could be stored?
It might help that I know the next ID to be generated. since there might be a way of finding a value in any record in any table. (If not, there should be :)