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
What command do we use to rename a database?
What guidelines should be followed to help minimize deadlocks?
What are the built in functions in sql server?
How many triggers are possible per table?
What is constraints and its types?
What is NOT NULL Constraint in sql server 2012?
Does partitioning improve performance sql server?
Do you know concepts and capabilities of sql server?
How sql server executes a statement with nested subqueries?
What is cross join in sql server joins?
Explain the categories of stored procedure?
what is an index? : Sql server database administration
What is simple indexing method?
Will sql server 2005 allow you to reduce the size of a column?
What is temporal data type?