The OneStream Community is temporarily frozen until June 29th due to the ongoing maintenance. Please read the blog post here to learn more.
Forum Discussion
danszczepanski
1 year agoNew Contributor III
Reference External DB and Application DB in one SQL Query
Hello, I am writing a SQL Query that references tables in different databases, one that exists in the External database (BI Blend) and one that exists in the Application database. I am having troubl...
- 1 year ago
As Teresa and Daniel have pointed out. You can achieve this with a Dashboard DataSet BR.
You would need to execute both sql commands separately e.g datatable1 is from application database and datatable2 is from framework database
You can then use the DataTable Merge method (assuming both datatables have the same columns as per your union statement) to merge the two datatables.
Then return the merged DataTable to your Data Adapter.
https://learn.microsoft.com/en-us/dotnet/api/system.data.datatable.merge?view=net-9.0&redirectedfrom=MSDN#overloads
Hope this helps
SimonHesford
1 year agoContributor II
JackLacava wrote a good article on how to do something similar with a Dashboard dataset BR.
The Dutiful Dead, or: A Tale Of Mixed DataSets | OneStream Community
danszczepanski
1 year agoNew Contributor III
Ah, JackLacava with another wonderful article. Thank you!
Related Content
- 2 years ago
- 2 months ago
- 2 years ago