Search code examples
sql-serverxmlfilebulk

Read from an XML File using SQL SERVER WITHOUT Bulk Load


Thanks for taking the time to help. I have an xml file on a server that I'm trying to read from using SQL Server. However, to use bulk loading, I would have to add the account used for the procedure to the bulkadmin server role. I would like to avoid giving such a permission to an account for a single procedure.

Is there another way to read from an xml file without using the bulk load method? I can't copy the xml file directly into the stored procedure (as the file is subject to change).


Solution

  • As far as I know there is no native / built in alternative to load a file into your database. These suggestions come into my mind: