Use the OPENROWSET feature to JOIN data in a query against a text file.
Leveraging the answer from @gbn on this question I am trying to
I had the same issue which was caused by using a SQL DNS-Alias. With Servername\Instance it worked, with ServerAlias\Instance I get Operating system error code 5(Access is denied.).
Operating system error code 5(Access is denied.).