Import from SQL Server Stored Procedure - first column not importing, and Order By not honored

Nola111

Board Regular
Joined
Aug 28, 2013
Messages
119
I'm using latest version of Excel from M365 on Windows, and Azure SQL Server 2017.

When I import the results of a stored procedure, it doesn't import the first column, and it doesn't import the data in the order indicated by the ORDER BY clause in the SQL Stored Procedure. When running the SP in SQL Server Management Studio, the results look exactly as we would expect.

I am connected to the database using Data-> Get Data, and from there created a connection. The Stored Procedure is being run per the method shown in this tutorial video:

I'm not getting any kind of error message that would indicate why I'm missing the first column.

Any thoughts?
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
First column issue is resolved. I've opened a new thread for the Order by issue. I didn't realize I can't delete this thread when I created the other one.
 
Upvote 0

Forum statistics

Threads
1,221,675
Messages
6,161,216
Members
451,691
Latest member
fjaimes042510

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top