Free for PREMIUM members
Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium
DECLARE @xml XML, @sql nvarchar(1000), @ParameterList nvarchar(100)
SET @ParameterList = '@xml xml OUTPUT'
set @sql = 'select * from OpenRowSet(BULK N''' + LinkGoesHere + ''') as test'
--Convert file content to a xml variable
EXECUTE sp_executesql @sql, @ParameterList, @xml = @xml OUTPUT
Open in new window
INSERT yourtable (yourfield) (
SELECT t.c.[value](''@yourxmlattributename'',''nvarchar(100)'') as [Value]
FROM @xml.nodes(''XPATH expression to your value'')as t(c))
Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.
<?xml version="1.0" encoding="utf-8" ?>