Find Jobs
Hire Freelancers

Delphi - CachedUpdates Procedure

$30-100 USD

Completed
Posted about 20 years ago

$30-100 USD

Paid on delivery
Need a procedure that will programmatically update the InsertSQL and ModifySQL properties of a TUpdateSQL component at run-time. The procedure call would be something like: PopulateUpdateSQL(Query:TQuery; UpdateSQL:TUpdateSQL); The TUpdateSQL component passed in would already have existing InsertSQL, DeleteSQL, and ModifySQL properties. Only the fields list portion of these properties should be updated by this command. Programmatically I want this procedure to function the same as when during design time the UpdateSQLEditor is used to retrieve the database fields, and generate the SQL. The only difference is the key fields data should be read from the existing properties and not updated. The TQuery object that is passed in is the Dataset that the TUpdateSQL pertains to; it will be active; and the field list data can be read from this object. For instance if the existing ModifySQL for the TUpdateSQL was update taaZipCode set ZIP = :ZIP, STATE = :STATE, CITY = :CITY, COUNTY = :COUNTY where ZIP = :OLD_ZIP and the schema had an additional field not listed in the current UpdateSQL of AREACODE, the procedure should rebuild the field list and update the ModifySQL to be: update taaZipCode set ZIP = :ZIP, STATE = :STATE, CITY = :CITY, COUNTY = :COUNTY, AREACODE = :AREACODE where ZIP = :OLD_ZIP this procedure would generate a new field list on the fly, based on the current data schema from the database for that Table. This revised field list would be substituted above. We use cached updates in conjunction with Query objects extensively in our applications, and this procedure would dynamically create the UpdateSQL on the fly. ## Deliverables 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement). ## Platform Delphi 6 Windows 32
Project ID: 3115918

About the project

2 proposals
Remote project
Active 20 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
See private message.
$34 USD in 3 days
5.0 (8 reviews)
3.3
3.3
2 freelancers are bidding on average $51 USD for this job
User Avatar
See private message.
$68 USD in 3 days
4.9 (4 reviews)
3.8
3.8

About the client

Flag of UNITED STATES
United States
5.0
16
Member since Sep 16, 2003

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.