SQL server database can JOIN directly to a XLS spreadsheet using something like
Then read data using xlsheet.columnn ame.
I have a straightforward question.
How do I do similar but JOIN to a CSV file instead?
Code:
LEFT JOIN OPENROWSET('Microsoft.Jet.OLEDB.4.0','Excel 8.0; Database=\\servername\path\to\folder\foldername\Customers.xls', 'SELECT * FROM [Sheet1$]') xlsheet ON account_ref = customer.ref
I have a straightforward question.
How do I do similar but JOIN to a CSV file instead?
Comment