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 replace the Query Result 'Null Value' with a text ?
How many database files are there in sql server 2000?what are they?
What is partition index in sql server?
Explain about extended stored procedure?
How many types of database relationship in sql server?
Do you know what are the properties of the relational tables?
What is identity?
What is a cube? : sql server analysis services, ssas
Can I work with several databases simultaneously? : sql server management studio
While migrating Microsoft SQL Server 2008 database to SQL Azure, what can be done to ensure the database connectivity does not degrade?
What guidelines should be followed to help minimize deadlocks?
what is the Ticketing tool used in Wipro technologies at Bangalore...???
Tell me extended events in sql server 2008?
Can sql servers linked to other servers like oracle?
Do you know the cursor optimization tips?