Reply
Highlighted
Regular Visitor
Posts: 24
Registered: ‎01-23-2016
Accepted Solution

Import "SQL Server Synonyms" in the data model

We use SQL server synonyms to refer to views in order to decouple view versions from the query layer.

These SQL Server synonyms do not show up in the editor to add data. The synonyms are named dbo.[nameofthesynonym]

 

As a workaround I added the view and afterwards tried to refer to the synonym via the advanced editor via edit queries but it did not help.


Accepted Solutions
Community Support Team
Posts: 7,441
Registered: ‎08-14-2016

Re: Import "SQL Server Synonyms" in the data model

Hi @giovi2008,

 

Based on test, current you can only use advanced t-sql query to get data from synonyms table, it is impossible to direct use navigate to get data.

 

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin Sheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.



For learning resources/Release notes, please visit: | |

View solution in original post


All Replies
Community Support Team
Posts: 7,441
Registered: ‎08-14-2016

Re: Import "SQL Server Synonyms" in the data model

HI @giovi2008,

 

I don't think you can import sql server synonyms relationship model to power bi. If you meant import synonyms tables to power bi, that is possible.

 

Power bi has its synonyms feature but it only works for Q&A features, I don't think it means you can use synonyms on relationship and data mode analysis.

Power BI Synonyms, Take Q&A Experience to the Next Level

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin Sheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.



For learning resources/Release notes, please visit: | |
Regular Visitor
Posts: 24
Registered: ‎01-23-2016

Re: Import "SQL Server Synonyms" in the data model

[ Edited ]

Hi Thank you for your reply.

I want to import Synonym tables, so in SQL Server you have the option to create synonyms which are views or tables and can be placed under another name in the schema. We use it for our data layer for instance to create a synonym upon another databases table or view and fetch the replicated table/view in a synonymCapture.PNG

Community Support Team
Posts: 7,441
Registered: ‎08-14-2016

Re: Import "SQL Server Synonyms" in the data model

Hi @giovi2008,

 

Based on test, current you can only use advanced t-sql query to get data from synonyms table, it is impossible to direct use navigate to get data.

 

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin Sheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.



For learning resources/Release notes, please visit: | |