on-internet
← Community

Import XML file into SQL Server without BULK

Stack Overflow ·

I'm trying to import data from a XML file into a database. I've made a test script using BULK INSERT, but when I've tested on the live database, permissions for BULK are disabled. Attempt #1: BULK INSERT XMLTable FROM 'C:\Radu\test.xml' WITH (ROWTERMINATOR = '>'); So, I have continued research to find a way to avoid using BULK and found other options, such as OPENROWSET and OPENDATASOURCE. But unfortunately, rights for these operations are also revoked. Attempt #2: SELECT * FROM OPENROWSET('MSDASQL', 'Driver={Microsoft Text Driver (*.xml)};DefaultDir=C:\Radu\test.xml;', 'SELECT * FROM [test.xm

Comments

Sign in or sign up to comment and upvote.

No comments yet.