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
T_Kress
OneStream Employee
1 year agoMy understanding is that it is an Azure limitation that you cannot SQL across two different databases. If your customer or you are on the Azure Cloud, then no this will not be possible in a data adaptor. There are work arounds via BRs that open two database connections and then run each SQL separately and joins via BR, but not data adaptor.
- danszczepanski1 year agoNew Contributor III
Thanks, T_Kress !
Related Content
- 2 years ago
- 2 months ago
- 2 years ago