Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Explain error handling in ssis?

964


What is a result set object returned by mssql_query()?

1070


What is the difference between ‘having’ clause and a ‘where’ clause?

991


Which are ddl commands?

973


What is difference between standardization and normalization?

1019


What are the differences between stored procedure and the dynamic sql?

1025


What is query processing?

881


What are null values in ms sql server?

1022


Explain about Normalization?

1012


How to enable/disable indexes?

1014


what do you understand by change data capture?

935


What happens if null values are involved in comparison operations?

906


What is scan table/view and seek table/view when its occurs? : sql server database administration

985


What does indexation mean?

916


What are sql azure firewall rules?

106