When you try to connect to a MS SQL Server stored procedure, the following error might occur:
The stored procedure "[<database name>].[<stored procedure name>]" does not return a result set
Unable to connect to server "<server name or IP address>". Check that the server is running and that you have access privileges to the requested database
Or
The "[dbo].[<stored procedure name>]" stored procedure returned no results. The fields don't have column names, or the data in the fields is not a supported data type.
The SQL Server ODBC driver forces Tableau to use server-side cursors in most scenarios, and the Microsoft ODBC driver has known issues with supporting metadata queries and result set retrieval for certain cursor types when temporary tables are involved.
Tableau writes the results of Stored Procedures to a temporary table automatically, and reads from the temporary table instead of executing the Stored Procedure every time (unless the input parameters to the procedure change).
Add a SET NOCOUNT ON statement to the beginning of the stored procedure.
The issue may also occur when using a temporary table inside of a stored procedure.
Also see:
"Invalid Cursor State" Error When Connecting to a MS SQL Server Stored Procedure
001473825

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.