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

Differentiate between a primary key and a unique key.

1064


You have several tables, and they are joined together for querying. The tables contain both clustered indexes and non clustered indexes to optimize performance, how should you distribute the tables and their indexes onto different file groups?

1000


What are the advantages of stored procedure in sql server?

890


What is the template in sql?

975


How can i Relate Tables in SSIS

1078


Where sql server usernames and passwords are stored in a sql server?

985


Explain sub-query?

946


Where is trigger in sql server?

1041


What are unicode character string data types in ms sql server?

1246


What are the different index configurations a table can have?

956


You want your report to display a hyperlink that will take users to your intranet. How do you configure such a hyperlink?

310


What is the language structure to add a record to a table?

1025


What are the new features are introduced in sql server 2012 reporting services?

149


How to optimize stored procedures in sql server?

1183


Why variables called the most powerful component of ssis?

1073