Tuesday, June 4, 2013

T-SQL(MSSQL 2005)Reorder Scope_identity

Hello , fellow developers !


Have a small table of 2 columns on MSSQL Server 2005 which contains a lot of information let's say about 1 billion records and it is constantly being written into.


Definition of the table is :



Create table Test(
id int
identity(1,1) primary key ,
name varchar
(30) )


In the perfect case scenario there will be nothing missing from this table , but due to server errors some data maybe deleted or some of my associates might be wasteful and delete it by fault, I have logs I have the data I can recover it, but I want to prove that the records are sequenced , that they follow each other even if there is a server error and some of them are deleted but later on reinstated. Is there a way to do this ?


No comments:

Post a Comment