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
nanci
Helper II
Helper II

Error connection Direct Query SQL database

I'm connecting to a SQL database using DirectQuery. I can see a table in the Model view, but in the Report view I don't see anything. Also, when trying to refresh the data, it shows this error.

 

nanci_0-1596658961562.png

 

5 REPLIES 5
Greg_Deckler
Super User
Super User

@nanci - There are a ton of possible reasons for this. I would start with the server/instance's name and the database name. Should go look at your data connection settings for these. Confirm you can ping the server/instance name. Confirm that you can open it in SQL Server Management Studio, etc. Where are you at in this troubleshooting process?


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler 
Server and database names are correct. I can already see the table in the Model View, but I see nothing in the Report View.
Also, it works fine if I change the connection to Import, the problem is when it uses Direct Query.

Hi @nanci ,

 

v-lionel-msft_0-1596677427036.png

Did you use the encrypt connection?

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

@v-lionel-msft yes, it is using Encrypt, I think this is by default.
I tried without Encrypt but I got the same error.

@nanci - What is your version of SQL?

@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.