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
Do you know what are the properties of the relational tables?
How to get the definition of a stored procedure back?
What are truncate options available in sql server? : sql server database administration
What is create command?
How to install sql server 2005 express edition?
What does REVERT do in SQL Server 2005?
How to delete existing triggers using "drop trigger"?
Explain syntax for viewing trigger?
What is an example of a foreign key?
What is the full form of dql?
How to use order by with union operators in ms sql server?
What do you understand by a view?
How do I view a procedure in sql server?
How do we Backup SQL Azure Data?
Why do we backup Active Directory ?