handling SQL result

Discuss RoboTask here
Post Reply
Gekseppe
Posts: 16
Joined: Tue Sep 02, 2008 4:45 am
Location: Iceland

handling SQL result

Post by Gekseppe »

Hello;I need some help to write a task with the following purposes:- run SQL with RoboTask;- Store SQL output in a text file.Any help/suggestion will be appreciated !Many thanks.
Oleg
Site Admin
Posts: 3051
Joined: Thu Jan 01, 1970 1:00 am
Contact:

handling SQL result

Post by Oleg »

What SQL query did you mean?
If you want to use "SELECT" query you should use DataSet Loop.
You can process retrieved data as you wish within the loop:
- set variables
- output into text files
- run another actions
- etc.
Oleg
Site Admin
Posts: 3051
Joined: Thu Jan 01, 1970 1:00 am
Contact:

handling SQL result

Post by Oleg »

In addition:
SQL Query action is used if you want input or change the data (queries like UPDATE, DELETE, INSERT, EXECUTE PROCEDURE, etc.)
Such queries can return only amount of rows affected.
Gekseppe
Posts: 16
Joined: Tue Sep 02, 2008 4:45 am
Location: Iceland

handling SQL result

Post by Gekseppe »

Many thanks for your replies."What SQL query did you mean?
"I meant to use RoboTask to connect to a Access DB so to retrieve data and then store the SQL output in a text file.
Oleg
Site Admin
Posts: 3051
Joined: Thu Jan 01, 1970 1:00 am
Contact:

handling SQL result

Post by Oleg »

I think that you want to use "SELECT" query.
Therefore you should use DataSet loop and compose some text file within the loop as you wish.
Post Reply