Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

here id col have primary key and identity
id name
1 a
2 b
3 c
4 d

delete 2nd row then o/p will be

id name
1 a
3 c
4 d

next inssert 2nd row and i want o/p will be
id name
1 a
2 e
3 c
4 d

Answer Posted / sunilkumar

set identity_insert on
insert into test1(Id ,id_name) values (2 ,'insertedat2')

Is This Answer Correct ?    7 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a domain constraint give an example?

1049


What languages bi uses to achieve the goal?

1002


How do I view a trc file?

944


What is checkpoint process in the sql server?

1037


What is the purpose of linked server configuration in sql server?

1050


Describe triggers features and limitations?

992


How to create a user to access a database in ms sql server using "create user" statements?

956


When we should use @@error?

974


Where are full-text indexes stored?

996


What is sql profiler. What are the default templates with it? : sql server database administration

1047


Define candidate key, alternate key, and composite key.

924


How to delete duplicate records based on single column from a table?

1052


What is SubQuery in SQL Server 2008

1026


What is the command dbcc checkdb used for?

1011


What is trigger explain with program?

986