how to rest identity columns in sql server
Answer Posted / muthu kumar
create table t(id int identity(seed,increment))
where seed is starting number and increment is number to be
incremented.
create table t(id int identity(1,1),name varchar(50))
so the id will be start with 1 and will be incremented 1 by
1 each time when record is get insered
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
How to identify current user in ssrs report?
List all types of constraints in sql server?
What are the differences between clustered and non-clustered index?
How to insert stored procedure result into temporary table?
What is the meaning of resultset type_scroll_insensitive?
What is instead of dml trigger?
What is query cost in sql server?
How to list all user defined functions in the current database?
What is the difference function and stored procedure?
Give the query of getting last two records from the table in SQL SERVER?
What is the maximum size of a dimension? : sql server analysis services, ssas
Can you explain full-text query in sql server?
What is the syntax to execute the sys.dm_db_missing_index_details? : sql server database administration
What is lookup override?
Would you store your query in a ssrs report or a database server? State the reason why?