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 temporary stored procedure?

940


Once setting replication, can you have distributor on sql server 2005, publisher of sql server 2008?

951


Explain what is sql server english query?

1049


How to provide login information for a new odbc dsn?

1051


Explain primary key in sql server?

1016


What is dirty read?

1080


how would you write a sql query to compute a frequency table of a certain attribute involving two joins? What changes would you need to make if you want to order by or group by some attribute? What would you do to account for nulls?

1629


What is implicit cursors?

1085


Explain four layers of abstraction microsoft architectured?

147


What do you mean by collation recursive stored procedure?

1052


What is the downside of using udf?

1109


Define right outer join?

978


Tell me what do you understand by a view? What does the with check option clause for a view do?

1019


What is difference between standardization and normalization?

1097


Explain about protocol layer present in SQL server?

1199