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
Dave
Advocate I
Advocate I

Data Connections with NOLOCK

I haven't been able to find the answers to a couple NOLOCK questions:

 

  1. SQL Connection: I know that when you establish a SQL connection in PBI Desktop, you can specifiy a query in which you can add NOLOCK. However, if you do not choose to define a specific SQL query, does Power BI use NOLOCK by default when it pulls the data? 
  2. ODATA Connection: Is it possible to set NOLOCK in an ODATA connection? 

The reason I'm wondering about this is because I'm looking to pull from a production DB for now (planning on a DW in the future) and don't want to lock some of the bigger tables. Also, I'd actually prefer to use the ODATA connection. From what I can tell, PBI pulls down all of the data with each refresh as it doesn't have any way to identify the rows that were modified since the previous refresh. 

 

Any direction on this would be much appreciated. 

5 REPLIES 5
ACT
Frequent Visitor

The comments on this article suggest that PowerBI does use locks...but yeah, I'd like to know more about the specifics as well.

Anonymous
Not applicable

I've created a request through the ideas forum. Worth commenting/liking it if you want to see some development on this.

 

https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/12956667-automatic-use-of-nolocks...

Anonymous
Not applicable

Hi,

 

Similar thoughts to yourselves.

 

I had a situation where Power BI locked up one of our databases. I am assuming that if I preface any of my queries with SELECT * FROM X WITH(NOLOCK) as I bring the data into Power Query before doing whatever else transformations that this should get around this issue?

Can anyone confirm the use of NOLOCK solving this issue?

Anonymous
Not applicable

In terms of connecting to a SQL table, I'm interested in exactly the same thing regarding the use of NOLOCKS. Even using a Data warehouse, we don't just update it once overnight, so knowing NOLOCKS are being used is really important. It's likely to cause performance issues as we roll Power BI out into the business.

 

More and more businesses are moving away from a single overnight refresh so I can imagine this becoming more of an issue.

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.