Question 171

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You are building a stored procedure that will be used by hundreds of users concurrently.
You need to store rows that will be processed later by the stored procedure. The object that stores the rows must meet the following requirements:
* Be indexable
* Contain up-to-date statistics
* Be able to scale between 10 and 100,000 rows
The solution must prevent users from accessing one another's data.
Solution: You create a user-defined table in the stored procedure.
Does this meet the goal?
  • Question 172

    Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
    After you answer a question in this section. you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
    You create a table named Products by running the following Transact-SQL statement:

    You have the following stored procedure:

    You need to modify the stored procedure to meet the following new requirements:
    - Insert product records as a single unit of work.
    - Return error number 51000 when a product fails to insert into the database.
    - If a product record insert operation fails, the product information must not be permanently written to the database.
    Solution: You run the following Transact-SQL statement:

    Does the solution meet the goal?
  • Question 173

    Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
    After you answer a question in this section. You will NOT be able to return to it. As a result, these questions will not appear in the review screen.
    You create a table named Products by running the following Transact-SQL statement:

    You have the following stored procedure:

    You need to modify the stored procedure to meet the following new requirements:
    Insert product records as a single unit of work.

    Return error number 51000 when a product fails to insert into the database.

    If a product record insert operation fails, the product information must not be permanently written to the

    database.
    Solution: You run the following Transact-SQL statement:

    Does the solution meet the goal?
  • Question 174

    Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
    After you answer a question in this section. you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
    You create a table named Products by running the following Transact-SQL statement:

    You have the following stored procedure:

    You need to modify the stored procedure to meet the following new requirements:
    - Insert product records as a single unit of work.
    - Return error number 51000 when a product fails to insert into the database.
    - If a product record insert operation fails, the product information must not be permanently written to the database.
    Solution: You run the following Transact-SQL statement:

    Does the solution meet the goal?
  • Question 175

    Note: This question is part of a series of questions that use the same or similar answer choices. An answer choice may be correct for more than one question in the series. Each question is independent of the other questions in this series. Information and details provided in a question apply only to that question.
    You have a database that contains tables named Customer_CRMSystem and Customer_HRSystem. Both tables use the following structure:
    The tables include the following records:
    Customer_CRMSystem

    Customer_HRSystem

    Records that contain null values for CustomerCode can be uniquely identified by CustomerName.
    You need to create a list of all unique customers that appear in either table.
    Which Transact-SQL statement should you run?