MCTS 70-431 Exam Cram: Implementing and Maintaining Microsoft SQL Server 2005 Exam

Answer C is correct. If you are going to create a process in which a new table is going to be generated on every execution, you need to use SELECT INTO to generate a table and a variable to hold the name of the table. INSERT (INTO) assumes that the table has already been created. # and ## are used for temporary tables.

For more information, see the following sources:

  • Chapter 2, "Creating Database Objects"

  • SQL Server 2005 Books Online: "SQL Server Database Engine, Accessing and Changing Database Data, Changing Data in a Database, Inserting Data into a Table, Adding Rows by Using INSERT and SELECT INTO, Inserting Rows by Using SELECT INTO"

Категории