Hi ,
I have one table customer_master and column cust_id is autoincrement 1 .when we are try to insert its working fine and inserted records like cust_id 1 and 2,3,4 but when generate error in insert command we do transaction rollback means cust_id 5 is not insert but when we are insert another record cust_id generate 6 . skip cust_id 5 . but i want to try if any error generate in insert command not increment identity and get last cust_id to next cust_id not any cust_id skip . So please give me reply as soon as possible. We are using c# and sql server 2005