How to import stored procedure result to the Excel sheet

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jack1257
    New Member
    • Jul 2010
    • 3

    How to import stored procedure result to the Excel sheet

    Hi

    How to import the stored procedure result to the excel sheet.please provide stored procedure code
  • Jerry Winston
    Recognized Expert New Member
    • Jun 2008
    • 145

    #2
    Just use Export wizard in SSMS.

    Choose 'write a query to export data' instead of 'Tables and views'. Run the query
    Code:
    EXE [mySchema].[sp_mySP]

    Comment

    • jack1257
      New Member
      • Jul 2010
      • 3

      #3
      plz give me the stored procedure code with columns display on excel

      Comment

      • Jerry Winston
        Recognized Expert New Member
        • Jun 2008
        • 145

        #4
        I'm not sure what you're looking for. Are you looking for the code of any stored procedure or how do columns map from the stored procedure to the Excel?

        Comment

        • NeoPa
          Recognized Expert Moderator MVP
          • Oct 2006
          • 32633

          #5
          Jack, as a general rule we don't provide boiler-plate solutions. This is heavily discouraged on the site, especially where members show no signs of having tried anything for themselves.

          Other than that of course, your request makes little sense. How can we, or anyone, provide the code for a stored procedure in your database without any sort of specification as to what is even required of the stored procedure? Let alone any information as to the data available to manipulate.

          Comment

          Working...