Skip to main content

Power BI

New

Remove schema name (or keep it optionally) importing tables or views from SQL Server

Vote (62) Share
Marco Russo's profile image

Marco Russo on 19 Feb 2015 07:59:09

When you import tables or views from SQL Server, the schema name is placed before the table/view name. When you import several tables/views from the same schema, this is really useless. Having the option to keep the schema name only on-demand during the import would be very useful.

Comments (4)
Marco Russo's profile image Profile Picture

e5724f99 7dc7-ea11-a812-000d3a9b112e on 16 Jul 2020 16:07:47

RE: Remove schema name (or keep it optionally) importing tables or views from SQL Server

I think it is even worse when importing from SSAS. We imported a Calendar table and now we have columns named like [Calendar. Calendar Date], while the full column reference is actually 'Calendar'[Calendar. Calendar Date], at least it is obvious this column comes from the Calendar table :)).

Marco Russo's profile image Profile Picture

039db0aa c339-4683-ac6a-b5348832284c on 06 Jul 2020 00:08:40

RE: Remove schema name (or keep it optionally) importing tables or views from SQL Server

Having the schema name in front of the table takes unnecessary space from the Power BI authoring canvas and makes it difficult to read table names.

Definitely very helpful. Please add.

Marco Russo's profile image Profile Picture

c29bd722 8872-ea11-a811-000d3a579c39 on 05 Jul 2020 23:53:51

RE: Remove schema name (or keep it optionally) importing tables or views from SQL Server

We would like to use a layer of database views in a "PowerBI" schema to grant users access to our fact and dimension tables. This is a nice way to insulate users from the underlying tables, and simplifies permissions because we simply grant SELECT and VIEW DEFINITION to the PowerBI schema. It would be very useful if we could automatically prevent Power BI Desktop from including the schema name by default.

Marco Russo's profile image Profile Picture

f7010c01 1203-e911-a958-000d3a1c7bbb on 05 Jul 2020 22:58:48

RE: Remove schema name (or keep it optionally) importing tables or views from SQL Server

This is so important. Please consider it. For enterprise clients, we use schemas as a security boundary, and I believe that best practice for Power BI is to separate out the views/procs that Power BI accesses into a separate schema with just SELECT and EXECUTE permission for the account that Power BI connects from. That all gets messed up when every time you import a set of views, etc. it prepends the schema name. That makes us have to rename every single one.