# DASQL refresh issue

**URL:** https://talk.remobjects.com/t/dasql-refresh-issue/27850
**Category:** Data Abstract
**Tags:** delphi
**Created:** [February 3, 2023, 9:39am UTC](https://talk.remobjects.com/t/dasql-refresh-issue/27850 "2023-02-03T09:39:08Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![TIMOTHY\_LAM](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/t/76d3ee/32.png) [@TIMOTHY\_LAM](https://talk.remobjects.com/u/TIMOTHY_LAM)
#### Post date: [February 3, 2023, 9:39am UTC](https://talk.remobjects.com/t/dasql-refresh-issue/27850/1 "2023-02-03T09:39:08Z")

</div>

Hi,  
I used FillWithDASql with condition. If I use TDAMemDataTable.refresh, it will ignore the condition.

---

<div class="post-metadata">

### Author: ![EvgenyK](https://talk.remobjects.com/user_avatar/talk.remobjects.com/evgenyk/32/16_2.png) [@EvgenyK](https://talk.remobjects.com/u/EvgenyK)
#### Post date: [February 3, 2023, 10:08am UTC](https://talk.remobjects.com/t/dasql-refresh-issue/27850/2 "2023-02-03T10:08:56Z")

</div>

Hi,

as expected.  
`TDAMemDataTable.Refresh` just closes and opens table and it doesn’t know that `RDA.FillWithDASql` was used.

workaround: use `table.Close `& `RDA.FillWithDASql` instead of `table.Refresh`

---

<div class="post-metadata">

### Author: ![TIMOTHY\_LAM](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/t/76d3ee/32.png) [@TIMOTHY\_LAM](https://talk.remobjects.com/u/TIMOTHY_LAM)
#### Post date: [February 3, 2023, 12:58pm UTC](https://talk.remobjects.com/t/dasql-refresh-issue/27850/3 "2023-02-03T12:58:10Z")

</div>

Hi,  
If need to close & FillWithDASql, that means I need to create the procedure to refresh the TDAMemDataTable dataset. Is it possible to use “refresh” in future version?

---

<div class="post-metadata">

### Author: ![EvgenyK](https://talk.remobjects.com/user_avatar/talk.remobjects.com/evgenyk/32/16_2.png) [@EvgenyK](https://talk.remobjects.com/u/EvgenyK)
#### Post date: [February 3, 2023, 1:00pm UTC](https://talk.remobjects.com/t/dasql-refresh-issue/27850/4 "2023-02-03T13:00:28Z")

</div>

Hi,

review possibility to create usual SQL on server-side. in this case, Refresh will work as expected.

---

<div class="post-metadata">

### Author: ![TIMOTHY\_LAM](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/t/76d3ee/32.png) [@TIMOTHY\_LAM](https://talk.remobjects.com/u/TIMOTHY_LAM)
#### Post date: [February 3, 2023, 1:05pm UTC](https://talk.remobjects.com/t/dasql-refresh-issue/27850/5 "2023-02-03T13:05:55Z")

</div>

Hi,  
SQL script is dynamic SQL. If SQL on server-side, then it can’t using dynamic SQL.

---

<div class="post-metadata">

### Author: ![EvgenyK](https://talk.remobjects.com/user_avatar/talk.remobjects.com/evgenyk/32/16_2.png) [@EvgenyK](https://talk.remobjects.com/u/EvgenyK)
#### Post date: [February 3, 2023, 1:09pm UTC](https://talk.remobjects.com/t/dasql-refresh-issue/27850/6 "2023-02-03T13:09:51Z")

</div>

Hi,

give example of your script.  
I think, some things can be solved via [DynamicWhere](https://docs.dataabstract.com/Technologies/DynamicWhere/) and [DynamicSelect](https://docs.dataabstract.com/Technologies/DynamicSelect/) features  
you can drop email to support@ for keeping privacy

---

<div class="post-metadata">

### Author: ![TIMOTHY\_LAM](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/t/76d3ee/32.png) [@TIMOTHY\_LAM](https://talk.remobjects.com/u/TIMOTHY_LAM)
#### Post date: [February 3, 2023, 1:18pm UTC](https://talk.remobjects.com/t/dasql-refresh-issue/27850/7 "2023-02-03T13:18:29Z")

</div>

Email sent.
