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 do you mean by data manipulation language?
Explain what are the events recorded in a transaction log?
What is spid in sql server profiler?
Explain what is the purpose of sql profiler in sql server?
Why do you need a sql server?
How to list all triggers in the database with sys.triggers in ms sql server?
What is scan table/view and seek table/view when its occurs? : sql server database administration
Is mysql the same as sql server?
what does the automatic recovery do? : Sql server administration
Explain how you can deploy an SSRS report?
What is a trigger what are the advantages of trigger?
What is the difference between for xml raw and for xml auto?
what is difference between NULL and ISNULL in SQL Server 2008?
What are the types of indexing?
What is SQL Azure Federations?