What should you do?
You are a database developer. You plan to design a database solution by using SQL Server 2008. A stored procedure uses the INSERT, UPDATE, and DELETE statements separately to load data into a table. You need to rewrite the stored procedure to use a single statement to load the data. What should you do?
What should you do?
You need to design a method for storing large XML-formatted data. The design must meet the following requirements:
* Minimize the page I/O
* Minimize the response time for data manipulation language (DML) queries
What should you do?
What should the solution include?
You have a table that has an XML column named XMLOrderHeader. You need to design a stored procedure that extracts the order header values and stores them in a table. The solution must meet the following requirements:
* Extract many values
* Minimize the development effort
What should the solution include?
What should you include in the query?
You plan to implement a Web-based application that will save XML data to a column in a table. You need to design a query that ensures that before saving the XML data to the table, the data contains valid elements. The solution must be developed by using the minimum amount of effort. What should you include in the query?
What should you use?
You have a table that has five varchar columns. You are designing an application that requires data in well-formed XML. You need to design a query statement that will produce the data in well-formed XML. What should you use?
What should you recommend?
Your company has the following development policy for XML data:
* The data must be element-centric
* The data must be well-formed XML
* The data must have a root element
* The data must contain the parent table name
You need to recommend guidelines for generating well-formed XML result sets. What should you recommend?
Which data type should you use?
You are designing a database that contains a data definition language (DDL) trigger. The DDL trigger will provide the maximum amount of data available when any attempt is made to change the database schema. You need to design a table to meet the following requirements:
* Accept the EVENTDATA information that is provided by the trigger
* Support the searching and retrieval of nodes and values
* Minimize development time
Which data type should you use?
What should you do?
You use SQL Server 2008 to design a database that will hold incoming XML responses for an EDI system. You have the following requirements:
* The data is accessible to heterogeneous platforms.
* The database stores various types of reports from multiple sources.
* The solution allows search by keywords.
* The database stores large amounts of data.
* The database is scalable.
You need to design the database to meet the given requirements. What should you do?
What isolation level should you use?
You are a database developer. You plan to design a database solution by using SQL Server 2008. A stored procedure in a database uses a transaction to retrieve data from a table and produces aggregations. You must design a solution that meets the following requirements:
* Update operations cannot be performed on the retrieved data while the stored procedure is being executed.
* Insert operations in the table can be performed while the stored procedure is being executed.
You need to ensure that the solution meets the requirements. What isolation level should you use?
What should you do?
You are a database developer. You develop a database by using SQL Server 2008 in an enterprise environment. The database has a table named Sales.Inventory. The table is partitioned into four geographic regions. You update the Sales.Inventory table for each region by using the following stored procedure:
CREATE STORED PROCEDURE usp_Update
@RegionID tinyint
AS
UPDATE Sales.Inventory
SET Qty = T.CurrentQuantity
FROM Sales.Inventory I
JOIN Sales.TempData T ON I.ItemID = T.ItemID
AND I.RegionID = @RegionID;
The UPDATE statement locks the Sales.Inventory table when a single region is updated. You need to prevent the locking of the Sales.Inventory table when a single region is updated. What should you do?