The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
this solution is my experience.
the English translation maybe not very well
0.汇总服务器地址和数据库名称为excel文件,文件名为
input servers as url , databases as database as excel file named
database.xlsx
xlsx
导入到powerquery编辑器中
Import into the powerquery editor
0
Connect to one of the databases ,enter the server , database, correct account & password normally.
1
Create the function below based on step 1
fnsql
2.1
2.2
2.3
3.进入高级编辑器,将源=()中()修改为
Go to the Advanced Editor and edit() to below where “source =()”.
url as text, database as text
填写过的服务器修改为
Modify the server that was filled to
url
数据库修改为
Modify the database that was filled to
database
3.1
3.2
4.复制步骤0的查询并粘贴
Copy the query from step 0 and paste it
4.1
4.25.在database(2)中添加自定义列
Add a custom column below in database(2).
fnsql([url],[database])
5
6.展开自定义列所需字段即可。
Expand the fields required for the custom column.
6
如果连接服务器时提示权限问题,请根据提示选择选项并输入数据库账户及密码
If you are prompted with permission questions when you connect to the server, follow the prompts to select options and enter the database account and password
Hi @i36 ,
Thank you for your sharing. Please mark the reply to close the case and help more people find the answer.
Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
User | Count |
---|---|
60 | |
55 | |
53 | |
49 | |
30 |
User | Count |
---|---|
179 | |
87 | |
70 | |
48 | |
45 |