Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   [VBP] Third Party Tools (https://www.kinook.com/Forum/forumdisplay.php?f=3)
-   -   Run Sql Action, how to get a value from SQL? (https://www.kinook.com/Forum/showthread.php?t=4751)

maorlast2 01-09-2011 08:38 AM

Run Sql Action, how to get a value from SQL?
 
I am using Visual Build 7.7

I am trying to get a specific value from the database table
I am using “Run Sql” Action and using SELECT query

how can i set the value that i got from the db into a temp marco?
I also tried to take it from LASTSTEP_OUTPUT but i see this result:

“MyValue

(1 row affected)”

I would like to remove the “(1 row affected)” and get the exact value "MyValue"

How can I do that?

kinook 01-10-2011 10:39 AM

1 Attachment(s)
See attached sample.

maorlast2 01-10-2011 04:10 PM

Querying via ADO
 
Thank you for your assistance.

I have another question that is also related to the same subject

For querying the database, i am using the ADO component and it does the work very well.

My question is can i do a SELECT query that will return several rows and iterate every value in every single row and save their values into Macro's?

I was able to do that when the SELECT returned me 1 row, can i do it with more than one row?

Thanks

kinook 01-10-2011 05:42 PM

Yes, use the Loop action (see the Server.bld sample).
http://www.kinook.com/VisBuildPro/Ma...rversample.htm
http://www.kinook.com/VisBuildPro/Manual/loopaction.htm


All times are GMT -5. The time now is 11:12 AM.


Copyright © 1999-2023 Kinook Software, Inc.