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 a user-defined function in the sql server and what is its advantage?

1142


What is the architecture of ms sql reporting service?

1027


How to create a local temporary stored procedure?

1047


How to create nested stored procedure?

1074


What do you mean by data integrity?

1130


What are the advantages of using third-party tools?

1038


Explain how many types of relationship?

1086


What are database states in ms sql server?

1247


Data is not being delivered to subscribers, what can be the possible reasons? : sql server replication

1104


What are the different types of locks in the database?

975


How do you troubleshoot errors in a SQL Server Agent Job?

1112


What is create command?

1022


When to use null data driven subscription?

213


Why do we need different type of parameter?

1109


How to verify a user name with sqlcmd tool?

1122