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 / s pattnaik
SET IDENTITY_INSERT dbo.test1 OFF
Then
insert into test1(Id ,id_name) values (2 ,'insertedat2')
| Is This Answer Correct ? | 6 Yes | 12 No |
Post New Answer View All Answers
explain different types of cursors? : Sql server database administration
Explain what are commit and rollback in sql?
What are different types of roles provided by ssrs?
How to write a query with a full outer join in ms sql server?
You want to generate a report that is formatted as a chart. Can you use the report wizard to create such a report?
How can you check the level of fragmentation on a table?
Do you know exporting and importing utility?
What are system databases in ms sql server?
What are commonly used mssql functions in php?
How to create a simple stored procedure in ms sql server?
Is it possible for a stored procedure to call itself or recursive stored procedure?
How to add a new dsn with the odbc driver for sql server?
What is explicit cursors?
What is the difference between sql server 2000 object owner and sql server 2005 schema? : sql server database administration
Can you create a logon trigger in sql server 2005 express edition?