I have a data table in SQL 2000 with a column_name Id(primary key) with int as data-type. When I insert values into it the it automatically gets rearranged in the following order.
Id
--
1
10
11
2
3
4
5
6
7
8
9
The issue is when I uses the max(Id) function the value returned is 9 and not 11.
But when I created the same table in some other sql 2000,it worked in the proper way returning the actual max value of 11.Why this happens??Is there any method to change the property of the table so that I could retrieve the correct data?