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
Explain data warehousing in sql server?
How to provide values to stored procedure parameters in ms sql server?
Which tcp/ip port does sql server run on? How can it be changed?
Can one drop a column from a table?
Can I run multiple instances of sql server 2000 at the same time on one computer?
Can we use where clause in union?
What is purpose of normalization?
What are basics of policy management?
Difference between aggregate functions of sql?
What happens if null values are involved in boolean operations?
Relational calculus is what type of language?
Why use sub query in sql server and list out types of sub queries?
What is GUID in sql server?
What is the difference between a unique key and primary key?
What is BCP? When does it used in sql server 2012?