Forum Discussion
Probem on report after change Data Source type
- Anonymous6 years ago
Thanks for your help.
I found a solution to my problem. I created an Oracle view (and the equivalent in SQL Server) with all the information than I need in my report. Them, in the report instead to select the tables involves, I select directly to the view typing the name of the fields of the query in the select section rather than use select *. After that, I change the DB source from Oracle to SQL Server (or vice-versa) and everything looks to be working fine. I Still haven´t tested enough but my first test case works.Anyway, here is my actual M-Script code:
-Oracle:
let
Origen = Oracle.Database("OracleHarina", [HierarchicalNavigation=true, Query="select COMPANY, PRODUCT, PRODUCTTYPE, TOT_VOL, VOLUMEUNIT from V_TEST_VIEW"])
in
Origen(OracleHarina is the entry name in tnsnames.ora)
-SQLS:
let
Origen = Sql.Database("42.112.110.220", "demoharina", [HierarchicalNavigation=true, Query="select COMPANY, PRODUCT, PRODUCTTYPE, TOT_VOL, VOLUMEUNIT from V_TEST_VIEW"])
in
OrigenThanks in advance!!
Hi Anonymous ,
could you post your M-Script (Advance Editor) ?
Both versions, the SQL Server version and the Oracle corrected version.
If I answered your question, please mark my post as solution, this will also help others.
Please give Kudos for support.
- Anonymous6 years agoNot applicable
Thanks for your help.
I found a solution to my problem. I created an Oracle view (and the equivalent in SQL Server) with all the information than I need in my report. Them, in the report instead to select the tables involves, I select directly to the view typing the name of the fields of the query in the select section rather than use select *. After that, I change the DB source from Oracle to SQL Server (or vice-versa) and everything looks to be working fine. I Still haven´t tested enough but my first test case works.Anyway, here is my actual M-Script code:
-Oracle:
let
Origen = Oracle.Database("OracleHarina", [HierarchicalNavigation=true, Query="select COMPANY, PRODUCT, PRODUCTTYPE, TOT_VOL, VOLUMEUNIT from V_TEST_VIEW"])
in
Origen(OracleHarina is the entry name in tnsnames.ora)
-SQLS:
let
Origen = Sql.Database("42.112.110.220", "demoharina", [HierarchicalNavigation=true, Query="select COMPANY, PRODUCT, PRODUCTTYPE, TOT_VOL, VOLUMEUNIT from V_TEST_VIEW"])
in
OrigenThanks in advance!!