Automated Export/Extract to SQL Server
This is a unique client request that I am trying to assist with. The need is to export directly from a Pyramid Discovery to a SQL database. My thought was to connect SQL SSIS job and induct a CSV file, but I need to make sure that CSV file is available automatically and daily. The client wants to pull directly from Pyramid and not through a subscription as to avoid any issue with using specific user's accounts.
Is there some connection function to pull or publish directly from Pyramid to an external SQL Server environment? The client does not have direct access to the original SQL Server to pull the source data directly.
5 replies
-
There are multiple techniques for this:
- Use the 'Data Flow' tools in Model: set the chosen report as a source and choose your SQL server as the target. It would go straight without issue. No CSV etc. Then put this data flow on a daily schedule. The whole thing works out of the box.
- Use the OData connector end point for the report and suck it into SQL Server via something like SSIS (clumsy compared to #1)
- Use the Query APIs to run the report, extract the results programmatically and load it into SQL Server using any language (lots of extra work compared to #1 or #2)
- Use the Publish tools to push a CSV file daily. Then (with a bunch of effort), suck the CSV into your SQL Server (clumsiest)
Based on what you want, I would choose #1.
-
You can create a data flow in the model.
The data source is the discover.
The target node is the SQL target.
Run the model with an API call, and you're done.
Although I have to say - I'm wondering what is the actual use case, sounds like a long circle just to avoid subscriptions...
-
I am trying option 1 right now and need to wait on client SQL information to confirm. But this sounds exactly like what I was looking for. Preemptive thanks and I will update this again once I get it working.