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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

Windows authentification is not supported in DirectQuery mode.

Hello,

 

As I am using huge tables, I prefer to use the directQuery mode.

Usually, I connect to power bi using my regular account number while when I connect to sql server, I use an alternate account number (an admin account).

 

However, I not able to use the directQueryMode.

I receive the following message:

Refresh .

Alternate credentials for Windows authentification is not supported in DirectQuery mode. User your current windows credentials, supply a database credential, or switch to import mode

 

Does someone know how to overcome this difficulties.

Regards,

1 ACCEPTED SOLUTION
luisrh
Responsive Resident
Responsive Resident

every instance of using directquery we have used always used a SQL Account.   It depends on how you are dealing with Row Level security on the backend -  Having said that,  we rearely use directquery.

 

Using Directquery is a double edged sword.   when you get into complex reporting on the Viz side you can run into performance issues since aggregations,  etc  have to be calculated at runtime.   You have to weigh the pros and the cons.   

View solution in original post

3 REPLIES 3
luisrh
Responsive Resident
Responsive Resident

you are running PBI Desktop under you windows account.   anything it runs is under that context -    My suggestion to you is to use a SQL server account when using directquery rather than your AD account.   It will also work for you if you publish this pbix to the service since the account is needed to refresh the model if you schedule it to refresh there.

 

Anonymous
Not applicable

Hello,

 

My administrator account gives me access to any sql server I need to connect to?

So I wonder who peoples are doing to use directQuery.

 

Regards,

luisrh
Responsive Resident
Responsive Resident

every instance of using directquery we have used always used a SQL Account.   It depends on how you are dealing with Row Level security on the backend -  Having said that,  we rearely use directquery.

 

Using Directquery is a double edged sword.   when you get into complex reporting on the Viz side you can run into performance issues since aggregations,  etc  have to be calculated at runtime.   You have to weigh the pros and the cons.   

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.