what command is used to create a table by copying the
structure of another table?

Answer Posted / hokar

SELECT * INTO tabname1 FROM tabname2 WHERE 1=2 (TO copy
only the structure)

Is This Answer Correct ?    18 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to drop an existing user defined function in ms sql server?

552


What is open database communication (odbc)?

561


Why is normalisation important?

487


what changed between the previous version of sql server and the current version? : Sql server database administration

505


What is the importance of three tier architecture?

595






How do I get to sql server configuration manager?

503


You want to use a perspective in an mdx query. How do you select the perspective?

157


How to create user defined functions with parameters?

626


What is function of master database?

94


How can you transfer data from a text file to a database table? Or how can you export data from a table to a comma delimited (csv) file? Or how can you import data from ms access to a table in a database? Or how can you export data from a table to an excel file?

547


How to list all triggers in the database with sys.triggers in ms sql server?

528


Give an example of SQL injection attack ?

561


How to find the list of fixed hard drive and free space on server?

553


How to check if stored procedure is running in sql server?

470


What causes index fragmentation?

562