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
Define full outer join?
What is a cache in ssrs?
What is policy based management (pbm)? : sql server database administration
How many partitions a clustered index has by default in sql server 2012?
What is the purpose of sql profiler in sql server?
If you're given a raw data table, how would perform etl (extract, transform, load) with sql to obtain the data in a desired format?
How is sql used in sql server?
What is transact-sql ddl trigger?
What is the maximum size per database for sql server express?
What is the difference between rank and dense_rank?
What is the stored procedure?
Can sql servers linked to other servers?
What is the most common trace flags used with sql server?
What is executereader?
What are the disadvantages of using the stored procedures?