I use SQL Server docker container for the first time. I run and connect docker without a problem.
When I try to load XML file to variable using this script:
DECLARE @xmldata XML
SELECT @xmldata=BulkColumn
FROM
OPENROWSET (BULK 'D:\DaneXML\NBP\a051z140314.xml',SINGLE_BLOB) as T1
SELECT @xmldata as Dokument
Normally parameter was a path to file on hard drive (just for learning)
Now certainly path to my hard drive (D:\DaneXML\NBP\a051z140314.xml
) is not recognised, because I am 'inside' the container.
What should I do to load this file then?
Probably I have to add the file to the container, how should I do it?
And what would be a PATH
to use in OPENROWSET()
?
And please, remember that this is my first time with docker containers :)