Quantcast
Channel: Developer topics
Viewing all articles
Browse latest Browse all 17884

Can't query data from database directly - have to use Stored Procedures...

$
0
0

Ok so I know this topic has been brought up before but after scouring forums and blog posts for the last couple of hours I am yet to come up with a way around my issue...

 

Current Situation

I am working on a set of financial reports which are currently mostly written in SSRS. We would like to modernize these reports and make them far more interactive than they currently are.

 

The Problem

I am working on a very complex 3rd party SQL database in which almost all data must be extracted by SQL Procedure instead of querying the tables directly. The database makes heavy use of CLR and works out almost all the required information on the fly. These Procedures requirenumber of parameters (including ID's, Date Ranges etc) in order to return data for the correct records on the correct dates. This data is often changing and there are a huge number of variables so it is impossible for us to get a full "static" version to report on. In SSRS we get around this by simply calling the Procedures and passing in SQL parameters to get the data we require.

 

What I was hoping to do...

So my hope was that I would be able to harness Power BI parameters to call the procedures and return the correct data - however this has proved difficult as Power BI parameters and Stored Procedure Paramaters don't seem to play nice... It just doesn't really match the design of how Power BI was supposed to work!

 

My plan B - anyone have any thoughts on this

I was looking into Power BI Embed (which looks awesome) and was wondering if I could programatically change the connection string of a report to produce something similar to that of  SSRS Parameters. I could expose the data via a Web API or similar so it would just be changing the connection source to a different URL. Perhaps even set the data source to a parameter so all I had to do was change the parameter and refresh?

 

 

If anyone has any thoughts or experience doing something similar I would really appretiate some thoughts!!


Viewing all articles
Browse latest Browse all 17884

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>