# Parse value to SQL Query DataFiles

**URL:** <https://forum.katalon.com/t/parse-value-to-sql-query-datafiles/83454>\
**Category:** Web Testing\
**Tags:** katalon-studio\
**Created:** [January 17, 2023, 5:18pm UTC](https://forum.katalon.com/t/parse-value-to-sql-query-datafiles/83454 "2023-01-17T17:18:01Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![resti.hariyati](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/resti.hariyati/32/20464_2.png) [@resti.hariyati](https://forum.katalon.com/u/resti.hariyati)\
**Post date:** [January 17, 2023, 5:18pm UTC](https://forum.katalon.com/t/parse-value-to-sql-query-datafiles/83454/1 "2023-01-17T17:18:01Z")

</div>

Anyone know how to parse value to this query below ?

 ![image](https://europe1.discourse-cdn.com/katalon/original/3X/1/a/1ae09d89fdf4a3387e3005d1f9b14844f6a5bccc.png)

This what the script looks like in SQL editor. I want to do the same in Katalon using DataFiles

 ![image](https://europe1.discourse-cdn.com/katalon/original/3X/4/7/4779bf3a31213e926dc998cdebd8c8f1a73b4917.png)

---

<div class="post-metadata">

**Author:** ![Elly\_Tran](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/elly_tran/32/21874_2.png) [@Elly\_Tran](https://forum.katalon.com/u/Elly_Tran)\
**Post date:** [January 18, 2023, 3:27am UTC](https://forum.katalon.com/t/parse-value-to-sql-query-datafiles/83454/2 "2023-01-18T03:27:02Z")

</div>

If I understand your problem correctly, should you try [Global variables](https://docs.katalon.com/docs/author/data-driven-testing/global-variables-and-execution-profile)?

---

<div class="post-metadata">

**Author:** ![grylion54](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/grylion54/32/16265_2.png) [@grylion54](https://forum.katalon.com/u/grylion54)\
**Post date:** [January 18, 2023, 8:59pm UTC](https://forum.katalon.com/t/parse-value-to-sql-query-datafiles/83454/3 "2023-01-18T20:59:12Z")

</div>

The following site might be what you are looking for:

> **[Data-Driven Testing using Database in Katalon Studio](https://blog.knoldus.com/data-driven-testing-using-database-in-katalon-studio/)**
>
> Hello Readers,
> 
> 
> 
> There are many instances in the life of QA engineers when they need to execute the test cases using real data. What do they generally do? Run

---

<div class="post-metadata">

**Author:** ![resti.hariyati](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/resti.hariyati/32/20464_2.png) [@resti.hariyati](https://forum.katalon.com/u/resti.hariyati)\
**Post date:** [January 18, 2023, 9:19pm UTC](https://forum.katalon.com/t/parse-value-to-sql-query-datafiles/83454/5 "2023-01-18T21:19:22Z")

</div>

GlobalVariables is just example. I am fine with any kind of variable @Elly_Tran . As answer below, I need to make SQL query become dynamic.

---

<div class="post-metadata">

**Author:** ![resti.hariyati](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/resti.hariyati/32/20464_2.png) [@resti.hariyati](https://forum.katalon.com/u/resti.hariyati)\
**Post date:** [January 18, 2023, 9:20pm UTC](https://forum.katalon.com/t/parse-value-to-sql-query-datafiles/83454/6 "2023-01-18T21:20:01Z")

</div>

If I use this technique means Katalon will fetch all data from table user\_profiles, right? I don’t think it is not a good idea if I have many rows in that table, CMIIW.

So, to simplify, I want to make that SQL query become dynamic “select \* from user\_profiles where name = ${variable}” . Is this possible , @grylion54 ?

---

<div class="post-metadata">

**Author:** ![grylion54](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/grylion54/32/16265_2.png) [@grylion54](https://forum.katalon.com/u/grylion54)\
**Post date:** [January 18, 2023, 10:15pm UTC](https://forum.katalon.com/t/parse-value-to-sql-query-datafiles/83454/7 "2023-01-18T22:15:00Z")

</div>

As long as you use **double** quotes (i.e. " ) like you have done in your response above, it should work. You should be able to tell as “variable” should be a different color than the rest of the string in KS.

---

<div class="post-metadata">

**Author:** ![anon46315158](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@anon46315158](https://forum.katalon.com/u/anon46315158)\
**Post date:** [January 19, 2023, 7:45am UTC](https://forum.katalon.com/t/parse-value-to-sql-query-datafiles/83454/8 "2023-01-19T07:45:46Z")

</div>

> [@grylion54](#):
>
> As long as you use **double** quotes (i.e. " ) like you have done in your response above, it should work.

Nope, it won’t work.  
SQL querries does not allow parametrization.  
LE: my sentence reffers in the context of Data Driven features as they are implemented from Katalon UI at the time of writing.  
There are few discussions and feature requests on this matter but are ignored until now.

---

<div class="post-metadata">

**Author:** ![anon46315158](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@anon46315158](https://forum.katalon.com/u/anon46315158)\
**Post date:** [January 21, 2023, 12:58pm UTC](https://forum.katalon.com/t/parse-value-to-sql-query-datafiles/83454/9 "2023-01-21T12:58:27Z")

</div>

> [@Elly\_Tran](#):
>
> If I understand your problem correctly, should you try [Global variables](https://docs.katalon.com/docs/author/data-driven-testing/global-variables-and-execution-profile)?

We understand you are willing to help … buut.  
Kindly get yourself more familiar with Katalon history.  
Yeah … it is nice to have somebody from Katalon teams replying quicly to adress comunity needs, and I appeciate your efforts.  
But some time to time, stuff has to be escalatad.

@vu.tran kindly do some research on such issues and consider this as a feature request (one more time) so the SQL querry and the Data Driven features support paramterizations at various levels.  
Thanks!

LE: i know it is not trivial to implement, but i will be happy to see that at least this is considered in your Roadmap.  
Side note: should be a free feature, please do not put it under licensing (enterpise) conditions
