Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using the AdventureWorksDW2016CTP3 database. Select * from Person.Person Where FirstName = John For XML Auto. Click on the XML link in the results area to

Using the "AdventureWorksDW2016CTP3" database.

  1. Select * from Person.Person Where FirstName = John For XML Auto.
  2. Click on the XML link in the results area to open the XML view.
  3. Right click on the SSMS query tab above the view, and save the file as xmlTest.xml.
  4. Construct a SQL transaction to import the xmlTest.xml results file back into SQL Server. Hint: Use the Commands OPENROWSET and OPENXML and the two stored procedures sp_xml_preparedocument and sp_xml_removedocument.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Server T-SQL Recipes

Authors: David Dye, Jason Brimhall

4th Edition

1484200616, 9781484200612

More Books

Students also viewed these Databases questions

Question

=+What would you leave out to allow readers to share their wisdom?

Answered: 1 week ago