sql - Possible index corruption? -


proof

in above image can see have table, when query max value of field it, different results based on clause rest of queries seem rule out irrelevant.

back end msde 2000, front end application written in vb.net 2008, verification performed using ssms 2008r2 attached msde instance on vpn.

it closed system application development, if correct whatever causing believe both db , application resume operation.

the problem is causing when requests max([record_index]) + 1 [station_id] = 10, value coming record exists in table, , insert failing because of unique constraint.

reindex of pk index solved problem , makes above queries max([record_index]) return same number max([record_index]) where... return same numbers, should. @ point index corruption logical answer. db engine 12 years old, , time has ever happened us, guess have accept it


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -