Link to home
Start Free TrialLog in
Avatar of gudidi
gudidiFlag for Israel

asked on

Sqlcmd could not write to log file

Hi Experts

i run from C# a commnad to run script on servers:

" -S agidi-pc -d SILVI -i \"100_RunScript.sql\" -o \"C:\\Silvi\\Upgrade\\100_RunScript.sql.0ut\" -U Silvi -P Password.1"

in my computer all works fine, and in customer computers i get error:
Could not find file 'c:\Silvi\Upgrade\100_RunScript.sql.0ut'.

any one can help?
10x
Avatar of Pratima
Pratima
Flag of India image

make sure that on customer compuetr
this path and file existsa wirh same names

c:\Silvi\Upgrade\100_RunScript.sql.0ut
Avatar of gudidi

ASKER

the file is not exists, akso in my computer is not exists.
the sqlcmd create it in my computer on runtime.
ASKER CERTIFIED SOLUTION
Avatar of Pratima
Pratima
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gudidi

ASKER

absolutly exists
 you think i better create the log file output before and avoid problems?