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 prepared statements using odbc_prepare()?

1055


What are user defined functions in ms sql server?

986


How do I view a stored procedure in sql server query?

918


Explain candidate key, alternate key, and composite key?

987


What is collation sensitivity?

1053


How to enter binary string literals in ms sql server?

1140


What happens if null values are involved in bitwise operations?

1005


What is cte (common table expression)?

1028


what is an extended stored procedure? Can you instantiate a com object by using t-sql? : Sql server database administration

1011


What is inline table-value user-defined function?

1100


What is a view and what are its advantages?

1104


What is the purpose of the model database?

1008


Can group functions be used in the order by clause in ms sql server?

1004


Tell me extended events in sql server 2008?

988


Explain about protocol layer present in SQL server?

1186