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 / pradeep aryan

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

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is normalization and denormalization in sql server?

1008


How to divide query output into multiple groups with the group by clause in ms sql server?

1031


Which table keeps information about stored procedures?

934


List few advantages of stored procedure.

981


How to search for a string in all stored procedure in sql server?

996


What is simple indexing method?

1021


What is 1nf 2nf and 3nf?

889


How many types of subqueries are there in sql server?

989


What is a scheduled job or what is a scheduled task?

949


Explain primary key?

953


In how many ways you can invoke ssrs reports?

137


What is difference between view and materialized view?

932


in the physical file layout, where should the transaction log be stored in relation to the data file? : Sql server administration

1061


How to check table values in sql server?

952


What is acid properties?

1091