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 / challa yerriswamy

set identity_insert <table_name> on
insert into text1(id,id_name) values(2,'insertedat2')

Is This Answer Correct ?    13 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the differences between decimal and float in ms sql server?

1117


What is attribute relationships, why we need it? : sql server analysis services, ssas

908


How ssrs maintain security?

1016


you notice that the transaction log on one of your databases is over 4gb the size of the data file is 2mb what could cause this situation, and how can you fix it? : Sql server administration

905


How sql server executes a statement with nested subqueries?

958


Explain ranking functions?

991


How to check table values in sql server?

908


Can a cursor be updated? If yes, how you can protect which columns are updated?

1029


What is the cpu pressure?

992


Explain steps of normalization?

939


Why it is recommended to avoid referencing a floating point column in the where clause?

919


How do I perform an unattended install of sql server 2000?

1018


How to start sql server browser service?

1066


What is the difference between the export /import functions in sql studio and standalone sql manager? : sql server management studio

1065


Explain what is lock escalation?

988