Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
michaeltclark4
Frequent Visitor

Query ODBC .db file from a SharePoint Site

Hi,

 

I have a database file, call it SQL LITE DATABASE.db, that is included in a Power BI report. This .db file is stored on a SharePoint site and updated regularly. 

 

I know that using a gateway is an option. But that's impractical for this case. Power BI gateway and Report Builder support for ODBC data sources (preview) - Power BI | Microsoft D...

 

Where I'm stuck is determining how to combine the following 2 statements, to 1st get the Binary content of the .db file from SharePoint and second query it as an ODBC source.  

 

1. = Web.Contents("SharePoint URL of SQL LITE DATABASE.db")

 

2. = Odbc.DataSource("database=C:\.......SQL LITE DATABASE.db",...)

 

I want something that effectively does this: Odbc.DataSource(Web.Contents("SharePoint URL of SQL LITE DATABASE.db"),...)

 

Any ideas on how this could be accomplished would be greatly appreciated. Thank you! 

 

 

1 ACCEPTED SOLUTION
v-jayw-msft
Community Support
Community Support

Hi @michaeltclark4 ,

 

I doubt you can do that. The file need to be writable.

You may take a look at this topic.

https://community.powerbi.com/t5/Power-Query/Connecting-to-SQLite-db-stored-in-sharepoint/m-p/115635... 

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

View solution in original post

1 REPLY 1
v-jayw-msft
Community Support
Community Support

Hi @michaeltclark4 ,

 

I doubt you can do that. The file need to be writable.

You may take a look at this topic.

https://community.powerbi.com/t5/Power-Query/Connecting-to-SQLite-db-stored-in-sharepoint/m-p/115635... 

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Kudoed Authors