# Update SQL COLUMN

**URL:** <https://forum.uipath.com/t/update-sql-column/165272>\
**Category:** Help\
**Tags:** question, database, activities\
**Created:** [November 5, 2019, 3:59pm UTC](https://forum.uipath.com/t/update-sql-column/165272 "2019-11-05T15:59:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Youssef](https://avatars.discourse-cdn.com/v4/letter/y/df788c/32.png) [@Youssef](https://forum.uipath.com/u/Youssef)\
**Post date:** [November 5, 2019, 3:59pm UTC](https://forum.uipath.com/t/update-sql-column/165272/1 "2019-11-05T15:59:58Z")

</div>

Hi,

I want to update SQL tab dynamically. The tab contain columns “numCin” and “statusBCT”

So I extracted the tab into data table, automated the process, and after completing the process,  
I want to update column “StatusBCT” = OK per line.

Here is the syntax i put for the query but does not work:  
“UPDATE TLFTestTable SET [statusBCT]=‘OK’ WHERE numCin=‘+Cin+’”

What’s the solution? thanks,

---

<div class="post-metadata">

**Author:** ![sarathi125](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/sarathi125/32/519448_2.png) [@sarathi125](https://forum.uipath.com/u/sarathi125)\
**Post date:** [November 5, 2019, 4:02pm UTC](https://forum.uipath.com/t/update-sql-column/165272/2 "2019-11-05T16:02:39Z")

</div>

Are you getting any error?

Can you share the columns datatype in the SQL table and the variables datatype you are passing in.

---

<div class="post-metadata">

**Author:** ![AshwinS2](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/ashwins2/32/176686_2.png) [@AshwinS2](https://forum.uipath.com/u/AshwinS2)\
**Post date:** [November 5, 2019, 4:03pm UTC](https://forum.uipath.com/t/update-sql-column/165272/3 "2019-11-05T16:03:40Z")

</div>

hi @Youssef

use SQL Query and use execute Query and pass the syntax

Thanks  
ashwin S

---

<div class="post-metadata">

**Author:** ![Youssef](https://avatars.discourse-cdn.com/v4/letter/y/df788c/32.png) [@Youssef](https://forum.uipath.com/u/Youssef)\
**Post date:** [November 5, 2019, 10:29pm UTC](https://forum.uipath.com/t/update-sql-column/165272/4 "2019-11-05T22:29:23Z")

</div>

Actually I want to update the status column without any condition

The tab is like this:

```
numCin statusBCT  

```

1 4785474  
2 4756217

I want to update statusBCT with the value “OK” after using the first numCin line value
