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

How to add code to the existing article (using improve article)?

1110


How to set database to be single_user in ms sql server?

1029


Please explain that what are the basic functions for master, msdb, model, tempdb and resource databases? : SQL Server Architecture

978


How except clause is differs from not in clause?

955


Due to some maintenance being done, the sql server on a failover cluster needs to be brought down. How do you bring the sql server down?

1326


What is bit data type?

1036


What is normalization process?

1180


What encryption security is available in sql azure?

101


When would you use sql joins?

961


Explain transaction server isolation?

1045


Data table as parameter in sql server?

1050


how can you select rexcord(rows) from table A which is not present in Table B . Id being the FK in Table B referencing to ID Table A

1682


How to include text values in sql statements?

1040


What is trace flag in sql server?

1025


What is the syntax to execute the sys.dm_db_missing_index_details?

1028