重命名后找到默认的 table 名称

Find the default table name after rename

我在 PowerBI 中有一个文件,其中包含一些 table 都链接到 SQL 服务器。我的问题是:

为了方便用户使用,我将 tables 重命名为更友好的名称,但现在我需要知道数据库中 table 的实际名称,但我找不到此数据.

我在哪里可以找到这个?

转到查询编辑器并打开链接到服务器的查询的高级编辑器。

在 M 代码的前几行中,您应该能够准确地看到它是如何连接的以及 SQL table 名称是什么。它可能看起来像这样:

let
    Source = Sql.Databases("servername"),
    DatabaseName = Source{[Name="DatabaseName"]}[Data],
    TableName = DatabaseName{[Schema="dbo",Item="TableName"]}[Data],
<...>