Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Identity problem

Author  Topic 

karthicklnt
Starting Member

2 Posts

Posted - 2011-09-05 : 01:13:14
I have table Delete_User which has one column Slno which is primary key with Identity(1,1). After the rows of data inserted in the table it shows me the below data while selecting the table
625
637
638
639
643
692
817
830
905
924
934
935
1042
which represents the data missing.
Note: Am not using the delete statement to this table.
Please help

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-09-05 : 02:14:43
there might be some contraints present in table which might have prevent few data from being successfully inserted as it will cause transaction to rollback in case of any conflicts

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

karthicklnt
Starting Member

2 Posts

Posted - 2011-09-05 : 02:48:02
Hey Visakh,
Thanks yaar..now i got it... transaction is one which leads to this
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-09-05 : 02:49:42
you're welcome

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2011-09-05 : 07:32:22
Also if you are worried about gaps dont use identity column

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -