I would like to read an xml and get a value from it but the xml file is returned via the following url:
http://webserver/XMLResult
I try To read the xml file, I used the folowing code :
INSERT INTO T(XmlCol)
SELECT * FROM OPENROWSET(BULK ‘http://webserver/XMLResult’,SINGLE_BLOB) as c
but I am getting the following error:
Cannot bulk load because the file… could not be opened. Operating system error code 123(error not found).
Do you know how to fix this issue?
If it is not possible, can someone recommend the best method which is help me reed XML from URL in sql server thanks