how to rest identity columns in sql server
Answer Posted / yvbchowdary
The identity is similar to squence object in oracle. syntax
for identity column is
<column-name> <data type> identity(start value,increment)
ex:
empno int identity(100,2)
suppose if u want to add an odd value i.e, 50; u can also
add
first execute IDENTITY_INSERT ON
and then u can insert whatever values u want. then again
execute IDENTITY_INSERT OFF
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain throw statement in sql server 2008?
Why is there a performance difference between two similar queries where one uses union and the other uses union all?
Can you explain what is sql server english query?
can you implement data mining in SSRS?
What is a subquery in a select query statement in ms sql server?
Can you name some of the dml commands in sql?
How do I find sql server instance name?
Difference between uniqe index and uniqe constraint?
Do you know what is similarity and difference between truncate and delete in sql?
How to find table changes in sql server?
System variable and temporary variables
how to do partition in sqlserver
What options are there to delete rows on the publisher and not on the subscriber? : sql server replication
What is a synonym for manipulation?
What is transaction server explicit transaction?