Importing Stored Procedure execution in excel - New Columns not showing up

  • We have a stored procedure which we use to import the data in Excel using following vba
      'With ActiveSheet.QueryTables.Add(Connection:=Array(ConString1), Destination:=Range("A1"))
            .CommandType = xlCmdSql
            .CommandText = IpSQLCommand
            .FieldNames = True
            .RowNumbers = False

            .Refresh BackgroundQuery:=False
        'End With
    This has been working fine.
    Recently we added few more fields to the output of Stored Procedure.
    In the SQL studio all the fields shows up but in excel all the new fields are missing.

  • This appears to be an exact duplicate of

    https://www.sqlservercentral.com/Forums/1867572/Importing-Stored-Procedure-execution-in-excel-New-Columns-not-showing-up

    The absence of evidence is not evidence of absence.
    Martin Rees

    You can lead a horse to water, but a pencil must be lead.
    Stan Laurel

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply