Forum Discussion

siddhantk989's avatar
siddhantk989
Helper III
9 years ago
Solved

Not able to make connection using direct query in SQL

Hi,     I am using direct query in power bi to connect to my SQL database in Power BI. I have my SQL database on a shared server and I am able to make the connection from my desktop to the SQL serv...
  • Anonymous's avatar
    Anonymous
    9 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.