Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

DataSource With DML sql Statement

Posted on 1998-12-05
3
Medium Priority
?
209 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 120 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses

670 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