?
Solved

loading sql file into delphi and executing it

Posted on 2003-11-11
3
Medium Priority
?
211 Views
Last Modified: 2010-05-18
hi there ,
i have a list of generated sql scripts log file (myoutputlog1.log,myoutputlog2.log,myoutputlog3.log,.......)
i receive them by email, i am execute the sql file so that i can insert to a databse the data include in the file. is there a way to execute that file in delphi.
please help
0
Comment
Question by:fadymoussallem
[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
3 Comments
 
LVL 27

Expert Comment

by:kretzschmar
ID: 9722799
>is there a way to execute that file in delphi.
maybe
how looks the content of this files?
0
 
LVL 26

Accepted Solution

by:
EddieShipman earned 300 total points
ID: 9725234
 Query1.SQL.Clear;
  Query1.SQL.LoadFromFile('c:\myoutpulog1.log');
  Query1.ExecSQL;


should do it for you
0
 
LVL 9

Expert Comment

by:tkalchev
ID: 9741061
What is the database ?
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses
Course of the Month10 days, 15 hours left to enroll

770 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