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

Insert syudents details in table.Current system date &time insert into joining time.How do insert?( in sysdate only return current system date how do add time?)

1431


What is the security model used in sql server 2005?

510


What is SQL Azure?

85


Does order by actually change the order of the data in the tables or does it just change the output?

670


What is the difference between grant and with grant while giving permissions to the user?

508






How does clustered and non clustered index work?

515


What are the differences between web role and worker role?

100


last function used in MS Access to convert sql what function will use in sql

1605


there is a trigger defined for insert operations on a table, in an oltp system. The trigger is written to instantiate a com object and pass the newly inserted rows to it for some custom processing. What do you think of this implementation? Can this be implemented better? : Sql server database administration

483


How can I change procedure name in sql server?

539


What is difference between join and natural join?

477


A trigger can reference objects outside the current database? State true or false.

550


What will be the maximum number of index per table?

589


What is encryption key?

84


What is inline table-value user-defined function?

590