Thursday, April 8, 2010

Excel PivotTable – From a Stored Procedure

What if we want to source the data from a stored procedure, not directly from a table.

After the OLE DB connection is created, and when Excel is ready to import data, click the Properties button.

image 
In this Connection Properties window, change the Command Type from Table to Default, and enter the command to execute the stored procedure.

image

No comments:

Post a Comment