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

Disadvantages of the indexes?

1119


What is a print index?

880


What happens when converting big values to integers?

995


What is a trigger what are the advantages of trigger?

996


Do you know what are the restrictions that views have to follow?

1075


Explain the difference between function and stored procedure?

938


What options are there to delete rows on the publisher and not on the subscriber? : sql server replication

1209


explain the storage models of olap? : Sql server database administration

955


What are the difference between data mart and data warehouse? : sql server analysis services, ssas

958


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

949


What are the benefits of filtered indexes?

1034


What is the purpose of grouping data in a report?

962


How many types of database relationship in sql server?

1052


What changes in the front end code is needed if mirroring is implemented for the high availability? : sql server database administration

1013


Which are ddl commands?

1038