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 can I create a table from another table without copying any values from the old table?

Answer Posted / amit kumar sharma

Select * into newTable From oldTable where 1=2

The where condition 1=2 will never get true, so only the
column of table will appear and get copied to newTable.

If we remove the where condition table with data will copy
to newtable.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to compose an inquiry to demonstrate the points of interest of an understudy from students table whose name begins with k?

1089


where the connection string store in the database

2071


How to check status of stored procedure in sql server?

988


Why truncate is ddl?

1089


What is a data source file?

975


What is the federation in sql azure?

97


How to get a list all databases on the sql server?

1103


Explain the truncate command?

987


What is best institute to Learn DotNET And SQL in chennai?

2163


Explain log shipping and mention its advantages.

1044


Are resultset updatable?

954


Can we hide the definition of a stored procedure from a use?

1224


What do you do in data exploration

994


How to get all stored procedures in sql server?

1001


What are the built in functions in sql server?

985