Hi DavidKingston-5052,
Welcome to Microsoft Q&A.
The OPENROWSET is usually used to access remote data from an OLE DB data source.
To export data to .csv file, we can use command-line Bcp utility.
For example:
bcp "SELECT * FROM dbo.table" queryout C:\temp\test.csv -S servername-d dbname -c -t, -T
We can also use SQL Server Import and Export Wizard in the SSMS to export data.
Please refer to Bulk Import and Export of Data and How to export SQL Server data to a CSV file for more information.
Best Regards,
Amelia
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.