How to view underlying SQL Queries in Tableau?
intermediateAnswer
Two routes, depending on why you are asking.
Performance recording — Help → Settings and Performance → Start Performance Recording. Interact with the workbook, stop the recording, and Tableau opens a workbook showing each query with its execution time and full text.
The log files — `My Tableau Repository\Logs`, principally `log.txt`. Queries are recorded there as they run, which is useful when you want the query without setting up a recording first.
For a live connection, the database's own query log or monitoring view is often the easier place to look, since it shows what actually reached the server.
Related questions