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 / boby

insert into <table_name>(id,name) values(2,'e')ORDER BY ID

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain throw statement in sql server 2008?

737


How to execute a sql statement using odbc_exec()?

744


What is a partitioned view?

769


What is sql service broker?

738


Does the order of columns in update statements matter?

670






what is database replication? : Sql server database administration

715


Explain the use of containers in ssis and also their types?

704


What are the system database in sql server 2008?

732


query processing

1922


In case you have filters in your report, when filters will be applied in cached report instance?

91


How can sql injection be stopped? : sql server security

713


What is sql sandbox in sql server?

826


Is candidate a key?

713


What is the optimal disk configuration for a database server and what raid configurations would you use if budget is not a constraint?

664


Please differentiate between a local and a global temporary table?

755