I have a SQL Server database with some number of tables. This has been part of a system that has been in production for three or four years. Today, I got a strange error message from one of the end users. After a bit of exploration, I tracked it down to the fact that there was no longer a primary key on one of the critical tables. The field was there, it simply was no longer designated as the primary key.
Naturally, the first response is to blame one of my colleagues. However, the only people who had the means, have denied doing anything that could have caused this. They deny even touching the table (though, to be fair, I still have one suspect, since he was tinkering with a different part of the database this morning). Aside from that, I know that primary key information is often lost in copies, but I'm pretty sure that didn't happen.
Is there anything else that can cause a primary key to go away? Could it just be on vacation? Could it have been off gambling in Atlantic City and gotten trapped in a flooded casino with a hooker named Candi?
Naturally, the first response is to blame one of my colleagues. However, the only people who had the means, have denied doing anything that could have caused this. They deny even touching the table (though, to be fair, I still have one suspect, since he was tinkering with a different part of the database this morning). Aside from that, I know that primary key information is often lost in copies, but I'm pretty sure that didn't happen.
Is there anything else that can cause a primary key to go away? Could it just be on vacation? Could it have been off gambling in Atlantic City and gotten trapped in a flooded casino with a hooker named Candi?