Skip to main content

Power BI

Needs Votes

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

Vote (72) 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 (5)
Marco Russo's profile image Profile Picture

Karthick Mageswaran on 09 Apr 2024 05:51:31

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

It is a pain to remove schema name from all views manually.There is no use for having the schema names prefixed.

Marco Russo's profile image Profile Picture

Mihail Rusnac 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

Kaushal Vyas 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

Jason Kohlhoff 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

Greg Low 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.