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 August 31st. Request your voucher.
How can I use T-SQL OPENDATASOURCE/OPENROWSET between two different AZURE SQL servers (stemming from 2 diiferent datamarts) to facilitate cross-server query
In db2 I am doing this and It is not working
SELECT
*
FROM
OPENDATASOURCE(
'SQLNCLI', 'Data Source=blahblahblah.datamart.fabric.microsoft.com;Integrated Security=SSPI'
).db_powerbiprodnam_xxxx_yyyy_zzzz.model.dim_country //.db.schema.table
SELECT
*
FROM
OPENDATASOURCE(
'MSOLEDBSQL', 'Server=blahblahblah.datamart.fabric.microsoft.com; Database=db_powerbiprodnam_xxxx_yyyy_zzzz;TrustServerCertificate=Yes;Trusted_Connection=Yes;'
).model.dim_country
SELECT
*
from
OPENROWSET(
'SQLNCLI', 'Server=blahblahblah.datamart.fabric.microsoft.com;Trusted_Connection=Yes',
db_powerbiprodnam_xxxx_yyyy_zzzz.model.dim_country
) as d
Thank you in advance.
I am not aware of a cross server query option
User | Count |
---|---|
43 | |
16 | |
12 | |
11 | |
9 |
User | Count |
---|---|
50 | |
31 | |
22 | |
17 | |
15 |