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 / deepak

Madhu, actually the answer which u have given is quite
common. Now i m gonna tell u a new one. The above question
has one more solution that is stated below:


"Insert into Table_name DEFAULT values"


that's it.

Is This Answer Correct ?    1 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

OPTIMIZATION OF SP,CURSOR,TRIGGERS

2289


How to concatenate two binary strings together?

703


What type of Index will get created after executing the above statement?

736


How to update values in a table with update statements in ms sql server?

639


what are statistics, under what circumstances they go out of date, how do you update them? : Sql server database administration

584






Explain trigger classes i.e. Instead of and after trigger?

567


Explain how many normalization forms?

656


What are the various editions of sql server 2017 that are available in the market?

576


Explain activity monitors

706


can an automatic recovery be initiated by a user? : Sql server administration

604


How are the exceptions handled in sql server programming?

684


Do you know data definition language, data control language and data manipulation language?

704


What is the difference between nvl and nvl2?

629


What is sub query and its properties?

640


What do you mean by recursive stored procedure?

594