Possible Duplicate:
Find the smallest unused number in SQL Server
I have this table in Sql server
ID | LetterID | LetterName
ID => int and identity
LetterID => int and unique and NotNull
LetterName => string
LetterID
fill from my C# application and user set number for it.for example 1,2,3,4,5,...,100,.. (increment an unit for each row) and now my LetterID
is 100
but Sometimes user delete one row from table for example delete row where LetterID
is 50
, now for insert new row (in application) I suggested to him LetterID
chose 50
, How can I get the missing numbers from table?