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 order of B+tree?
how many type of indexing in database?
explain what is a schema in sql server 2005? Explain how to create a new schema in a database? : Sql server database administration
how can you check the level of fragmentation on a table? : Sql server administration
How to start and end transact-sql statements?
What is user-defined inline table-valued function?
What is mean by candidate key?
What happens when transaction log is full?
What is sub-query in sql server? Explain its properties.
Explain for xml explicit mode?
Explain cdc and sql injection?
Explain what are the restrictions that views have to follow? : SQL Server Architecture
What is bookmark link in ssrs?
What are trace flags and mention a few common trace flags used with sql server?
What is the use of attributehierarchyvisible ? : sql server analysis services, ssas