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 / qwerty

set identity_insert <table_name> on
insert into <table_name>(id,name) values(2,'e')
set identity_insert <table_name> off

Is This Answer Correct ?    12 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is sql view?

969


What is sql server 2000 work load governor?

990


Define right outer join in sql server joins?

997


How to rename an existing column with the "sp_rename" stored procedure in ms sql server?

1054


What is the recovery model?

947


Which are the new data types introduced in sql server 2008?

846


Define left outer join in sql server joins?

918


what is a check constraint?

1052


What does indexation mean?

928


Write the syntax for stuff function in an sql server?

993


What are the different types of columns types constraints in the sql server?

1028


Why union all is faster than union?

872


What is transaction server isolation?

982


Why do we need normalization?

884


Define msdb database?

986