Which action should you take?

You are a database developer on an instance of SQL Server 2008. In your Prod database, you have purchasing-related tables that contain product, vendor, and purchasing data. You want extract data from several of these tables and display it in XML format. You want to accomplish this with the minimum development effort. Which action should you take?
A. Create a stored procedure that queries the tables and returns an xml data type.
B. Use the FOR XML clause in a query that joins the required tables.
C. Create a Transact-SQL script that uses the sp_xml_preparedocument system stored procedure and then inserts the XML into an xml data type column.
D. Implement a query that uses the OPENXML function in the FROM clause

microsoft-exams

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.