Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


fabrizio carboni
2022-01-31T14:48:23Z
He all,
I wish to loop one SQL code like EXEC [dbo.MyStoreProc] '\\mypath\myfile\'
the value of \\mypath\myfile\ is the file name found with the task list File(s).

That is the task sequence as I think to be:
list File(s)
In the task SQL I set the loop as for each row in {TASK(PrevTask|StdOut)}

so how I can pass the filenalme at SQL code?
EXEC [dbo.MyStoreProc] '\\mypath\myfile\' {TASK(PrevTask|StdOut)}(x) ?

thank
Fabrizio
Sponsor
Forum information
fabrizio carboni
2022-01-31T16:24:30Z
exec [dbo].[PALLETSCAN_Test] '\\MYPATH' \ '{LOOP(CurrentValueXArray|0)}

I get on error : Incorrect syntax near \, but I think to have found the solution,
Support
2022-02-01T07:50:47Z
Originally Posted by: fabrizio carboni 

exec [dbo].[PALLETSCAN_Test] '\\MYPATH' \ '{LOOP(CurrentValueXArray|0)}

I get on error : Incorrect syntax near \, but I think to have found the solution,



Great, do you still need help or did you find a solution?
Michael
Support
http://www.visualcron.com 

Please like  VisualCron on facebook!
fabrizio carboni
2022-02-01T08:57:07Z
Hi Michael,
thank I found the solution, to share it at who can be need:
exec [dbo].[PALLETSCAN_Test] '\\MYPATH\{LOOP(CurrentValueXArray|0)}'


ps: How I can mark as solved this thread??
Support
2022-02-01T15:16:07Z
Originally Posted by: fabrizio carboni 

Hi Michael,
thank I found the solution, to share it at who can be need:
exec [dbo].[PALLETSCAN_Test] '\\MYPATH\{LOOP(CurrentValueXArray|0)}'


ps: How I can mark as solved this thread??



Thank you! No need to mark anything. We just consider it closed.
Michael
Support
http://www.visualcron.com 

Please like  VisualCron on facebook!
Scroll to Top