The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi Teams,
Need to run SQL Statement which is join by Two Database. For Direct Query or Import, I need to specify the Server and Database name. Here issue is, in same SQL two database table are joined, so showing error when I am trying.
Are there any process to overcome the issue?
Thanks Teams
Proud to be a Super User! | |
Solved! Go to Solution.
@PijushRoy wrote:@Shahfaisal
When you paste SQL Code in SQL Windows box, that time database is compulsary
Please try.
Yes, you will be required to if you are putting the sql code. However, you can just specify one of the databases in there. As long as you use three-part naming (specify database name in the code) you should be fine. For example, I just used te following (to show you) on my database server without any issues.
Specifying Database is optional. You can just ignore it and it should work. If you ae still having issues, please post the error. Make sure that your sql code is referencing the database name.
@Shahfaisal
When you paste SQL Code in SQL Windows box, that time database is compulsary
Please try.
Proud to be a Super User! | |
@PijushRoy wrote:@Shahfaisal
When you paste SQL Code in SQL Windows box, that time database is compulsary
Please try.
Yes, you will be required to if you are putting the sql code. However, you can just specify one of the databases in there. As long as you use three-part naming (specify database name in the code) you should be fine. For example, I just used te following (to show you) on my database server without any issues.
Hi @Shahfaisal
Thanks for your post and small change SQL I am able to load the data but validation is pending.
My thinking is, if I post one database name top and join with other table in SQL box, it will not work. But now I am able to load the data.
I will update here after verify the data
Thanks for your reply.
Proud to be a Super User! | |
@Shahfaisal ?
Is the sql fetching/loading correct data? For me I am getting error.
Please check and confirm
Proud to be a Super User! | |
@PijushRoy wrote:@Shahfaisal ?
Is the sql fetching/loading correct data? For me I am getting error.
Please check and confirm
It would get the correct data as long as your sql code is correct. As I mentioned before, please post you error message here.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
121 | |
86 | |
76 | |
55 | |
46 |
User | Count |
---|---|
136 | |
128 | |
78 | |
64 | |
63 |