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
What is policy management?
How do you debug a procedure in sql server?
Explain system views?
How to sort the query output with order by clauses in ms sql server?
What is faster join or union?
What is the difference between sdf and mdf?
What is the difference between stored procedure and functions?
How will you optimize a stored procedure optimization?
how many clustered indexes can be created on a table? : Sql server database administration
what is difference between NULL and ISNULL in SQL Server 2008?
Can a trigger be created on a view?
Explain an incremental backup?
What are subqueries in sql server? Explain its properties.
Explain index in sql server?
Explain what are partitioned views and distributed partitioned views?