I am designing table in SQL Server 2008 R2 SP2 Express database. I created table with nvarchar column for data and tinyint column for auto-incrementing identity assuming there will be no more than few rows (that's why I choose 0-255 tinyint). When I add more than 255 rows, this error keeps occurring permanently even after I delete all rows in that table and try to add one new row. I am doing this using SQL Server Management Studio Express.
- How to force database engine to check what indexes are free?
- Will this happen too if I change
tinyinttointand reach limit ofintnumber?
IDENTITYcolumn is used up - regardless of what datatype that column has. However: withINT, you get at least 2 billion possible values - which should last a bit longer than the 255 you have used up by now....