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

Answer Posted / pradip jain

SELECT * INTO tblNew FROM tblOld WHERE 1=2

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what is row_number function?

551


What is checkpoint in sql server?

607


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

555


Give a example to search fr a string in all stored procedure in sql server.

521


What do you mean by stored techniques? How would we use it?

569






If any stored procedure is encrypted, then can we see its definition in activity monitor?

539


what is normalization? Explain different levels of normalization? : Sql server database administration

643


How to make remote connection in database?

586


How to create user messages with print statements in ms sql server?

586


Explain how many normalization forms?

569


What is difference between views and stored procedures?

504


Differentiate between ms sql server reporting services vs crystal reports?

476


How to choose all records from the table?

641


Suppose we have a table "MyTable" containing 10 rows, what query should be executed to update the odd rows "Salary" as 9000?

569


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

580