Hi all,
I have a scenario when suddenly Excel 2013 crashes when trying to get data from stored procedure. Here are the steps that I used to fetch the data:
1. In a blank Excel file, getting data from external source (Data -> From other sources -> From Microsoft Query)
2. Establishing connection to the server and database, using "SQL Server" driver
3. Calling procedure into the MS Query window (procedure requests two date parameters which were given in the call)
4. Procedure returns data to the query window
5. In the query window, clicking on File -> Return data to Excel, Excel crashes
Other stored procedures are working fine but this one is really causing us problems. Here is what is different in this stored procedure:
- It uses CTE - Common Table Expressions in TSQL
- It uses SET NOCOUNT ON at the begining and SET NOCOUNT OFF at the end of the procedure
- It returns 160 columns
- It does not use temp tables
Thank you!