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 do we Backup SQL Azure Data?
Does sql server 2000 full-text search support clustering?
How can you insert null values in a column while inserting the data?
What is data source view or dsv? : sql server analysis services, ssas
What is truncate table?
Can anyone tell that the extra features are there in SQL SERVER 2008 that are not available in previous versions .
How to create a view on an existing table in ms sql server?
Explain about system database?
Are connections to sql server encrypted?
What happens if the update subquery returns multiple rows in ms sql server?
Explain filtered indexes?
Explain the third normal form(3nf)?
What happens if you are trying to access a schema not owned by you?
How to concatenate two strings in SQL Server.
what authentication modes does sql server support? : Sql server database administration