Solved

DataSource With DML sql Statement

Posted on 1998-12-05
3
205 Views
Last Modified: 2010-04-04
instead of using the Datasource property AddNew,Delete,Update.can i supply the insert,update or delete sql statement to Datasource control ?
0
Comment
Question by:qwertyuiopasdfghjkl
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 4

Expert Comment

by:dwwang
ID: 1349453
You can only apply SQL statement to TQuery component.
0
 

Author Comment

by:qwertyuiopasdfghjkl
ID: 1349454
yes....then can i apply DML to Tquery ?
0
 
LVL 4

Accepted Solution

by:
dwwang earned 30 total points
ID: 1349455
Sorry for the delay, you can apply any kind of SQL statements to a tquery, for example, a DML statement:

myQuery.SQL.Text:='insert into mytable values(fieldsval1,fieldval2,...)'
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question