Accepted answer
-
answered
2021-11-22T16:40:19.253+00:00 Michael Taylor 37,456 Reputation pointsNot directly in T-SQL. Normally export is handled using SSIS or similar tool.
XSLX follows the Office OpenXML specification and ultimately is a ZIP file. T-SQL can generate text files but it isn't going to be able to generate an OpenXML document.