简体   繁体   English

Power BI 桌面连接到用户名与我登录的用户名不同的数据源

[英]Power BI desktop connecting to data source with different user name than the one I am logged in as

When connecting to SQL Server Data Source for getting data, it uses my windows authentication by default, and based on the screen, it seems that there is no way to change this.连接SQL Server数据源获取数据时,默认使用我的windows身份验证,从屏幕上看,好像没办法改。

截屏

What if I had a different account meant for reports with SQL Server authentication that had r/o access to specific tables only for reporting -- does Power BI allow me to connect with SQL Server authentication in a different way?如果我有一个不同的帐户用于使用 SQL Server 身份验证的报告,而该帐户只能对特定表进行 r/o 访问以进行报告——Power BI 是否允许我以不同的方式连接 SQL Server 身份验证? Or maybe I want to use windows authentication, but I don't want to use the account I am logged into;或者我想使用windows身份验证,但我不想使用我登录的帐户; I want to use a different one... How about that?我想使用不同的...怎么样?

It seems like it knows I have authentication to the database based on who I am logged in as, and it gives me no other option to be able to connect in a different way.它似乎知道我根据我的登录身份对数据库进行了身份验证,并且没有其他选项可以以不同的方式进行连接。

That is because it stored the credentials that you entered earlier.这是因为它存储了您之前输入的凭据。 To change or delete the stored credentials, go to File -> Options and settings -> Data source settings .要更改或删除存储的凭据,请转到File -> Options and settings -> Data source settings There you will see the data sources used in the currently loaded report (if any) and the global ones used before.在那里您将看到当前加载的报告中使用的数据源(如果有)和之前使用的全局数据源。 Find the data source that you want to change and click Edit Permissions button:找到要更改的数据源,然后单击“ Edit Permissions按钮:

在此处输入图片说明

There you can adjust the data source settings, change or delete the stored credentials:您可以在那里调整数据源设置、更改或删除存储的凭据:

在此处输入图片说明

If you click on the Edit button, you will be able to enter new Windows, Database, etc. credentials to be used:如果单击“ Edit按钮,您将能够输入要使用的新 Windows、数据库等凭据:

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM