I am not that much familiar with database things. But I have a problem. I am developing an application for one of my client and that uses SQL Server 2008 R2, one table has an INT IDENTITY
as its primary key.
Since, the data has started flooding in this table i have to change INT
to Uniqueidentifier
, as int has limitation, certain range. I want to take care of this before hand. Please suggest me the way through which I can change that.
Challenges :
- I am using Entity Framework, which uses that table however,
ID
(INT,AUTO INCREMENT,PK) has never been used. This is just in database. - Database is in production hence can't afford loosing data.
I have few questions:
- Up to what range int will start throwing error in database?
- If we keep deleting the older records will it affect the int range Or in other word will it be fine if we keep deleting older records?
Please help me with this.
Thanks in advance
Amod