Forum Discussion
Jackson_L
15 years agoContributor
Hello,
Are you using VBScript or JScript? Earlier you said you were using VBScript, I may have missed when you switched to JScript. The string concatenation operator is & for VBScript and + for JScript.
Are you using VBScript or JScript? Earlier you said you were using VBScript, I may have missed when you switched to JScript. The string concatenation operator is & for VBScript and + for JScript.
Is ComandoCriarTabela a global variable? Otherwise the variable specified in the LGComponentes function will be blank. It's a little tricky to only see piecemeals of code and assuming what else has been done.
The best way to check the value being passed to the Run command is to log it and check if it's correct.
eg add the following line before the Run line.
Log.Message("Run command: " & ComandoCriarTabela & "1.LGComponentes\SQLServer\1.sql -o " &DirLog&"1.txt")
Cheers,
Jackson