Avatar of skaleem1
skaleem1Flag for Canada

asked on 

How to dynamically add columns to the layout of a reporting services report

I have a query:

Select * from TableNm

The first two columns returned by the query will always be the same. However, the remaining column names and column numbers will vary everytime I run the query from tableNm table as the table structure is going to be modified every week by dropping and recreating the table.

I want to display the results of the query in a reporting services .rdl file. How can I dynamically modify/refresh the header names of the same layout in the .rdl file every time I generate the report by running the select query above. Can someone please guide me with a solution?

Thanks
Microsoft SQL Server 2005SSRS

Avatar of undefined
Last Comment
Faiga Diegel
ASKER CERTIFIED SOLUTION
Avatar of Faiga Diegel
Faiga Diegel
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of skaleem1
skaleem1
Flag of Canada image

ASKER

How would using a matrix control overwrite the column layout of an existing report that is based on a dataset, can you please walkthrough/elaborate?
Microsoft SQL Server 2005
Microsoft SQL Server 2005

Microsoft SQL Server 2005 is a suite of relational database management system (RDBMS) products providing multi-user database access functionality.Component services include integration (SSIS), reporting (SSRS), analysis (SSAS), data quality, master data, T-SQL and performance tuning. It includes support for managing XML data and allows a database server to be exposed over web services using Tabular Data Stream (TDS) packets encapsulated within SOAP (protocol) requests.

72K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo