I am getting the following Operating system error:
code 3(The system cannot find the path specified.)
The client machine is windows 10 and the MSSQL server is running on Ubuntu 20.04.
The query is
Declare @JSON varchar(max)
SELECT @JSON=BulkColumn
FROM OPENROWSET (BULK '/home/user/RC_2015-01.json', SINGLE_CLOB) import
SELECT *
FROM OPENJSON (@JSON)
The file /home/user/RC_2015-01.json exists locally on the MSSQL server. I did also did a sudo chown mssql RC_2015-01.json.
The file permissions are as follows:
-r-xr-xr-x 1 mssql user 31648374104 Jun 24 23:54 RC_2015-01.json