thanks, it works, by the way, will the hostkey change if i reboot the server? thanks
No, it should not.
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
thanks, it works, by the way, will the hostkey change if i reboot the server? thanks
-hostkey
switch of open
command. Again, it's documented in the links above.
yes, but we don't want to show the Password on the script, is it away that SQL agent uses my stored session or switch user to my account? thanks
yes, i use session on the script
open
command. Particularly your example is missing the password. That's why WinSCP prompts for it (assuming the SQL server account does not have access to configuration with your stored session).