RehaanAbdulla
2 years agoNew Contributor III
How to write from a SQL query into a cubeview
Good Day
I am new to OneStream so forgive me if this question and the answer should be known but I have created a SQL table with values and I would like to take those values and write them to a cubeview. I am using a business rule and was wondering how would I do this. I am aware I need to make a sql connection so my initial code is:
Dim sql As New Text.StringBuilder
sql.AppendLine(" SELECT * From x_BatchControl")
Using dbConnApp As DBConnInfo = BRApi.Database.CreateApplicationDbConnInfo(si)
Using dt As DataTable = BRAPi.Database.ExecuteSql(dbConnApp, sql.ToString, True)
Looking for any help on this.
Thanks
Rehaan