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...

How create table structure only from tableA to TableB if
TableA have some data?

Answer Posted / sunny

to copy only the structure
select * into table2 from table1 where 1=2
to copy the table along with the records
select * into table2 from table1 where 1=1

Is This Answer Correct ?    12 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are sql server procedures?

1035


What do you mean by tablesample?

1124


can you instantiate a com object by using t-sql? : Sql server database administration

1041


What are the common performance issues in sql server?

971


Does index slows down insert statements?

1047


Is mysql the same as sql server?

1031


What is the importance of a recovery model?

1092


How to add an address record into adventureworkslt?

1027


How to create new databases with "create database" statements?

1067


What is an expensive query?

970


What is nolock hint in sql server 2008

1179


What is 4nf in normalization form?

1061


What is a primary key?

997


What are the mathematical functions supported by sql server 2005?

1124


How to create a view and a stored procedure in ms sql server using "create view/procedure" statements?

1070