Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi
im wokring on pbix which is already using odbc. its slow.. can i change it to connect directly to SQL server?
what are common senarios which odbc is only option or prefered to use odbc?
Solved! Go to Solution.
Hi @Anonymous ,
You can follow the following steps:
Copy your PBIX file to a new file .Then, create a new query that connects via SQL. Then, open the Advanced Editor and copy the Source line only.
Open your ODBC query and replace the Source line with the one that you copied:
And after you apply it, you need to change the credential for it.
Each of those classes does the same thing but is optimised for different databases. The SqlConnection deals directly with SQL Server, the ODBC Connection requires an ODBC provider for the database to which you want to connect, SqlConnection is more efficient when using SQL Server because there is no ODBC provider in between and you can make use of all possible SQL Server-specific optimisations. For more details, please refer to http://www.differencebetween.net/technology/software-technology/difference-between-odbc-and-sql-2/#ixzz6D5EuzKbL
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai
Hi @Anonymous ,
You can follow the following steps:
Copy your PBIX file to a new file .Then, create a new query that connects via SQL. Then, open the Advanced Editor and copy the Source line only.
Open your ODBC query and replace the Source line with the one that you copied:
And after you apply it, you need to change the credential for it.
Each of those classes does the same thing but is optimised for different databases. The SqlConnection deals directly with SQL Server, the ODBC Connection requires an ODBC provider for the database to which you want to connect, SqlConnection is more efficient when using SQL Server because there is no ODBC provider in between and you can make use of all possible SQL Server-specific optimisations. For more details, please refer to http://www.differencebetween.net/technology/software-technology/difference-between-odbc-and-sql-2/#ixzz6D5EuzKbL
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai
@Anonymous , ODBC should be used only when direct connector is not available.
How to change connection details - https://youtu.be/59PUFuuCrbY - here you to change complete connection string
User | Count |
---|---|
76 | |
75 | |
45 | |
31 | |
27 |
User | Count |
---|---|
99 | |
89 | |
52 | |
48 | |
46 |