Say if we have a table that contains only a single column ,
say OrderID, which has IDENTITY attribute defined on it. So
how can we insert data in this table.
I am reframing my question, that how can we make the table
to increment the column "OrderID" value several times???
Answer Posted / brahma
create table t1(a int identity(1,1))
insert into t1 default value
set identity_insert t1 off
(or)
set identity_insert t1 on
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are the steps you must follow to hide sql server instances?
Can you explain how long are locks retained within the repeatable_read and serializable isolation levels, during a read operation with row-level locking?
What new changes are being made in SQL Server?
How to drop existing views from a database in ms sql server?
In which sql server version report builder introduced?
How do you start single user mode in clustered installations?
How to maintain a fill factor in existing indexes?
Which table keeps the locking information?
How to use go command in "sqlcmd"?
Does a server store data?
How to concatenate two strings in SQL Server.
Can we add our custom code in ssis?
Explain database normalization?
Define left outer join in sql server joins?
How to display a past time in days, hours and minutes?