What is the best way to do the following:
I have a URL that contains an XML file. I need to easily take that XML file and put it in to a table in SQL Server. I will know in advance the fields in the XML file and in the table.
I have seen some code using OpenXML, OpenRowset etc. but I have not been able to figure out how to directly open the URL of the XML file (i.e. and insert the data in to a table - but not in to an XML field - I want the fields parsed out in the SQL table.
Thanks in advance!!!
I have a URL that contains an XML file. I need to easily take that XML file and put it in to a table in SQL Server. I will know in advance the fields in the XML file and in the table.
I have seen some code using OpenXML, OpenRowset etc. but I have not been able to figure out how to directly open the URL of the XML file (i.e. and insert the data in to a table - but not in to an XML field - I want the fields parsed out in the SQL table.
Thanks in advance!!!