Forum Discussion
Not able to make connection using direct query in SQL
- Anonymous9 years ago
siddhantk989 If you use Azure SQL DB or Warehouse you don't need a gateway as those are cloud services. Since it sounds like you are on-premises, you need a gateway. And the personal gateway doesn't support Direct Query, only the OPD Gateway does.
As to your other question, "it depends":
If you need the absolute latest data - use DQ
If you have issues with pushing data into the cloud - use DQ
Would the model size exceed 1GB in the Desktop - use DQ
If the load and processing times to import the data take to long - use DQ
DQ may require additional performance monitoring depending on number of users, and will most likely be a little slower due to the communication latency. You also have some restrictions based on some measures that aren't supported, and the Desktop limits the data manipulation you can do.
I use both import and DQ, it largely depends on the scenario.
Easy to test, just copy your PBIX, leave the original in DQ and change the connection type in the new one to import. See how long it takes to load, change things, etc.
siddhantk989 If you use Azure SQL DB or Warehouse you don't need a gateway as those are cloud services. Since it sounds like you are on-premises, you need a gateway. And the personal gateway doesn't support Direct Query, only the OPD Gateway does.
As to your other question, "it depends":
If you need the absolute latest data - use DQ
If you have issues with pushing data into the cloud - use DQ
Would the model size exceed 1GB in the Desktop - use DQ
If the load and processing times to import the data take to long - use DQ
DQ may require additional performance monitoring depending on number of users, and will most likely be a little slower due to the communication latency. You also have some restrictions based on some measures that aren't supported, and the Desktop limits the data manipulation you can do.
I use both import and DQ, it largely depends on the scenario.
Easy to test, just copy your PBIX, leave the original in DQ and change the connection type in the new one to import. See how long it takes to load, change things, etc.
Hi Anonymous,
Thanks for the help sir. I was actually testing the same way.I do need the latest everytime so I tried using direct query and import feature both with focusing more on direct query as it helps in avoiding the data refresh set up for every dashboard, but I found out with large data sets direct query makes the dash board bit slow as comapred to the import feature. It might be beacuse every time in direct query it goes to the data base and executes the query again and then bring the data while in import feature it is actually storing data in sementic layer and then fetching the data from the semantic layer instead of hitting the data base again and again. Thanks again for the help.