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 / challa yerriswamy
set identity_insert <table_name> on
insert into text1(id,id_name) values(2,'insertedat2')
| Is This Answer Correct ? | 13 Yes | 0 No |
Post New Answer View All Answers
What is the syntax for encrypting a column in SQL Server?
How to create user defined functions with parameters?
What are the filtered indexes?
What is the meaning of sql server?
How to create stored procedures with parameters in ms sql server?
Data is not being delivered to subscribers, what can be the possible reasons? : sql server replication
how can u get last observation in an unknown dataset ?
Help!!!!!!!!!!!! My database has gone offline, it is highlighted as 'Suspect'. Foolishly, i haven't got a recent back up. Is there a way of quickly restoring the database? Thank you
What are the differences between char and varchar in ms sql server?
What are indexers?
What is dirty read?
Explain powershell included in sql server 2008?
What is faster join or union?
What are the different types of sql server replication? : sql server replication
What is query parameter in ssrs?