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 a system database and what is a user database?
What are the new security features added in sql server 2012? : sql server security
Explain full-text query in sql server?
Are connections to sql server encrypted?
How to identify current user in ssrs report?
What is the difference between Triggers and Stored Procedure?
How check triggers in sql server?
Define clusters?
How to set a database state to offline in ms sql server?
Explain what stored procedure sp_replcounters is used for? : sql server replication
How can I know what locks are running on which resource?
What is the need for group functions in sql?
Explain the different types of backups available in sql server? : sql server database administration
Relational calculus is what type of language?
How to list all columns in a table using odbc_columns()?