I have a table with an Identity column as Primary Key.
All is well until one several days ago, application that is using this table start complaining about PK violation. At first I thought this was impossible, until I remember about DBCC CHECKIDENT. The magic function told me that the 'current column value' is higher than 'current identity value'. I RESEED to the highest value and all seemed well again.
My question is, to prevent this from happening again in the future, what are the possible causes of this out of sync problem? And how to prevent it?