Solved
Forum Discussion
randall
Contributor
function DeleteDatabase(srvrInstanceName, scriptPath) { var commandDraft = "sqlcmd -S " + srvrInstanceName + " -i " + scriptPath; var command = """ + commandDraft + """; Log.Message("scriptPath = " + scriptPath); Log.Message("command = " + command); var Return = shell.Run(command, 1, true); Log.Message("Return = " + Return); if (Return != 0) { Log.Error("database deletion failed") } }
Marsha_R
8 years agoChampion Level 3
In my VBScript scripts, only the Sub section will enable the button. The Functions won't run separately. I wonder if this is a similar issue.
- randall8 years agoContributor
Marsha,
I don't think so. In Jscript there are no subroutines. Everything is a function, even the main. Besides, I've been working on this project since April and have not had this problem until now.
Thanks,
Randall
Related Content
- 2 years agoianlop
- 6 months agomacheshmeh
- 11 months agoIso_Yura
- 4 years agomcbane
Recent Discussions
- 3 hours agoSvetaG