How to create SSRS Report Dynamically with Dynamic Schema, Dynamic Table Name and Dynamic Columns Part 59.1


Few months back, I created a post/video "How to Create SSRS Report When Number of Columns Can change Anytime in Source Object". In this post we are going to create another dynamic reports in which we will be able to

1) Choose the Schema form our Database
2) Choose Table for given schema from step 1
3) Choose column/s depending upon values of step 1 and Step 2
4) Display the data on report for our selected columns

This type of report can be very helpful when we have to simply create many details reports for users from our database. If we would like we can add also the Where clause in our report to provide filtered reports. Let's leave that challenge to you.

SQL Queries for our Data Sets

1) DS_Report 
Link to Code

3) DS_Tables
This will return the list of user tables depending upon the schema you will choose

Select Distinct Table_Name as TableName from INFORMATION_SCHEMA.TABLES
and TABLE_SCHEMA=@SchemaName
order by Table_Name

4) DS_Columns
This will return us the list of columns depending upon the selection of Schema and Table

where TABLE_SCHEMA=@SchemaName
and TABLE_NAME=@TableName


  1. Replies
    1. IEEE Final Year Project centers make amazing deep learning final year projects ideas for final year students Final Year Projects for CSE to training and develop their deep learning experience and talents.

      IEEE Final Year projects Project Centers in India are consistently sought after. Final Year Students Projects take a shot at them to improve their aptitudes, while specialists like the enjoyment in interfering with innovation.

      corporate training in chennai corporate training in chennai

      corporate training companies in india corporate training companies in india

      corporate training companies in chennai corporate training companies in chennai

      I have read your blog its very attractive and impressive. I like it your blog. Digital Marketing Company in Chennai Project Centers in Chennai

  2. I went over this website and I believe you have a lot of wonderful information, saved to my bookmarks

  3. Great post. I'm looking exactly. But I'm facing a challenge when i entered SP, am not getting fields. I'm referring step at Video at 17.37. What could be issue?

    1. Getting the same error>>!!! Did you happened to find out???

  4. This comment has been removed by the author.