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

How to create a simple table to test triggers in ms sql server?

908


What happens if null values are involved in boolean operations?

938


What are the two modes of authentication in sql server?

972


Explain raiserror in sql server?

961


Comment,Datatypes are unlimited

2015


What do you mean by an execution plan?

1050


Suppose you want to implement the following relationships while designing tables. How would you do it?a.) One-to-oneb.) One-to-manyc.) Many-to-many

887


What is data source document?

976


What number sorts of privileges are accessible in sql?

978


Why Master database is required?

1052


Where can you find the error log information? : sql server database administration

969


Which database stores information about replication?

986


Do you know concepts and capabilities of sql server?

1003


How do triggers work?

878


How to apply filtering criteria at group level with the having clause in ms sql server?

943