Skip to content

Instantly share code, notes, and snippets.

@jwoschitz
Created August 13, 2011 08:11
Show Gist options
  • Save jwoschitz/1143599 to your computer and use it in GitHub Desktop.
Save jwoschitz/1143599 to your computer and use it in GitHub Desktop.
Load a XML file with OPENROWSET
DECLARE @XML AS XML
SELECT @XML = BulkColumn FROM OPENROWSET(BULK '\\a\file\path\to\your\document.xml', single_blob) AS R
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment