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
How to specify the collation for a character data type in ms sql server?
What are the different types of normalization?
Any one plz send me SQL Server Developer/DBA resume for 4 years experience
What is difference between count (*) and count 1?
As per your opinion what are the five top responsibilities of a dba? : sql server database administration
What is sql injection and why is it a problem? : sql server security
What are the advantages of using a stored procedure?
Do you know the cursor types?
what purpose does the model database serve? : Sql server database administration
Explain subquery and state its properties?
What are blobs, tables, and Queues? Is SQL is the standard way to query blobs, tables, and queues?
Explain the different types of joins?
What are wait types?
What do you mean by collation recursive stored procedure?
Is sql server free?