Export stored procedure result set to Excel in SSMS

后端 未结 3 981
故里飘歌
故里飘歌 2020-12-02 00:53

i\'m using SSMS and attempting to export the results of a stored procedure to a new excel file. The SP accepts an int parameter but I cannot find a way to call it in the que

3条回答
  •  广开言路
    2020-12-02 01:45

    This isn't a direct answer to your question, but it is possible using Excel VBA and connections to connect to a SQL Server Stored Procedure, feed it parameters, and return the SP result set in Excel. Check out my article Microsoft Excel & SQL Server: Self service BI to give users the data they want for an image and code-heavy demo.

    Good luck.

    There's too much detail there to post in a single SO question, otherwise I'd do that here.

提交回复
热议问题