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
What is reference section?
What is merge replication?
What is a view and what are its advantages?
Explain about integration services of Microsoft SQL server?
While migrating Microsoft SQL Server 2008 database to SQL Azure, what can be done to ensure the database connectivity does not degrade?
can a database be shrunk to 0 bytes, if not, why? : Sql server administration
What are the different types of join?
How can you start sql server in different modes?
What is the difference between implicit and explicit transaction?
Define tool Manage Statistics in SQL Server 2000 query ?
What is a functions and types in sql server?
What is the distinction amongst delete and truncate?
Different types of keys in SQL?
How to send email from database?
Name few of the dcl commands in sql?