Forum Discussion
shahid_tanmoy00
3 years agoRegular Visitor
Using textbox input in Sql source Query possible?
Hi All :), I have a sql query that is connected to sql database server. I have a sql code that runs on a refresh but I want I want to build a tool out of it that restricts the code to whatever...
Anonymous
3 years agoNot applicable
Hi shahid_tanmoy00 ,
You can connect to your data source by clicking "get data" on the power bi desktop, and then enter the sql query in the "sql statement" as shown below. You can also use a SqlDataSource control with parameterized queries and assign parameter values from predefined sources or programmatically.
Please refer to the following document for more information.
Using Parameterized Queries with the SqlDataSource (VB) | Microsoft Learn
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.