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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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 Solution Authors
Top Kudoed Authors