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 is store procedure? When do you use?
How to list all user names in a database?
Define Wed Edition in SQL Azure?
What is the osql utility?
Explain some stored procedure creating best practices or guidelines?
What is sharding?
How to create a trigger for insert only?
What are different types of join?
What is tcl in sql server?
What happens if null values are involved in datetime operations?
Explain difference between cross join and full outer join?
Explain filtered indexes?
Explain contrast amongst grouped and non-bunched records?
What are synonyms?
Explain primary key, foreign key and unique key?