Skip to Content (Press Enter)
OutSystems.com
Personal Edition
Community
Support
Training
Training
Online Training
Developer Schools
Boot Camps
Certifications
Tech Talks
Documentation
Documentation
Overview
ODC
O11
Forums
Forge
Get Involved
Get Involved
Jobs
Ideas
Members
Mentorship
User Groups
Platform
Platform
ODC
O11
Search in OutSystems
Log in
Get Started
Back to Forums
Alexander Tsorlinis
201
Views
3
Comments
delete all records and upload them freshly from excel
Question
Dear all,
I have crafted a small application that queries and lists all my wine entries. The Initial upload went smoothly during the initial development. Now I would like to update the database because I maintain the information outside of outsystems and want to delete all records and upload them freshly.
I think maybe i just use a sql "delete" statement and just bootstrap and upload the data in the service studio again from the excel. But I discovered nowhere the possibility to execute SQL.
If you have some idea how i can achive that that would be highly apreciated.
Thank You in advance!
Alex
Remco Dekkinga
MVP
You can use an SQL Statement. Check my screenshot. All the items with the red borders need to be filled.
Paulo Garrudo
Staff
Hi.
If you have multiple database entities, eg. Invoice and InvoiceLines, that uses attributes with constraints (mandatory FK) it will be necessary to delele all records using the proper order.
SQL Statement using only one advquery
DELETE FROM {InvoiceLines};
DELETE FROM {Invoice};
You can also use multiple advqueries where you replace only one DELETE statement for each advquery.
Regards,
Paulo Garrudo
Alexander Tsorlinis
Dear Remco and Paulo,
Everything worked fine. I was just too blind to detect the SQL element.
Thank You very much !
Kind regards,
Alex
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
See the full guidelines
Loading...