The code below is from a blog article I wrote on use BCP to dump data.
Here are some things to note that are different from what you have.
1 - The path should be supplied to bcp since it might not be found.
2 - I noticed that you put a *.xlsx extension even though it is a comma separated value (csv) format. I suggest using *.csv extensions.
3 - Also, you need to supply a character after '-t,' delimiter switch. Below uses a hex value. The example here uses a comma.
4 - Last but not least, I saw you are missing " " around the file name.
Please fix these issues and try again. If still no dice. Use my code that creates a string. Use the PRINT command.
Try the call from the command line. If it does not work there, it will not work in SQL server.
Good luck.
John Miner
www.craftydba.com
PS: If still have issues, post the output of the command execution.
PPS: The schema should already be fixed for an existing database. Just ask you DBA for the syntax, unless you are the accidental DBA?
-- BCP - Export query, pipe delimited format, trusted security, character format
DECLARE @bcp_cmd4 VARCHAR(1000);
DECLARE @exe_path4 VARCHAR(200) =
' cd C:\Program Files\Microsoft SQL Server\100\Tools\Binn\ & ';
SET @bcp_cmd4 = @exe_path4 +
' BCP.EXE "SELECT FirstName, LastName FROM AdventureWorks2008R2.Sales.vSalesPerson" queryout ' +
' "C:\TEST\PEOPLE.TXT" -T -c -q -t0x7c -r\n';
PRINT @bcp_cmd4;
EXEC master..xp_cmdshell @bcp_cmd4;
GO