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

If a stored procedure is taking a table data type, how it looks?

6447


What is sql server schema compare? How we can compare two database schemas?

1029


How to deploy the Report?

138


Can We Use Data-grids For Our Report In Ssrs?

184


How to test odbc dsn connection settings?

1031


What is query optimization process?

1010


Why we use the openxml clause?

1011


What the different components in replication and what is their use?

952


User wants only to display only pdf as export option in report manager. How to achieve this?

262


What options are there to delete rows on the publisher and not on the subscriber? : sql server replication

1216


What are the steps you will take to improve the performance of a poor performing query?

979


What are cascading parameters in ssrs reports?

229


Create and insert into temp table in sql server?

1030


How to create an index on an existing table in ms sql server?

979


How many types of database relationship in sql server?

1054