I have this SQL script tht work properly:
INSERT INTO #XMLwithOpenXML(XMLData, LoadedDateTime)
SELECT CONVERT(XML, BulkColumn) AS BulkColumn, GETDATE()
FROM OPENROWSET(BULK 'C:\temp\test.wordpress.2017-05-22.xml', SINGLE_BLOB) AS x;
SELECT @XML = XMLData FROM #XMLwithOpenXML
Now I need to pass the xml file path with a variable.
How do I have to change the script?
Thanks to support