1
Friends, I ask for help to solve a small problem.
I am running SQL command through sqlcmd and Shell on C#, but the file is in a folder that contains "space", as follows.
Path: D: Sandboxes\CIA project\3-Development Scripts DDL DDL_T_DDW_CIA_PRODUTO_INDEXADOR.sql
When I run Shell the error is displayed: Win32exception: System cannot find specified file
Is there any way to make Shell understand the "space" in the Path?
Follow command that is running.
strScript = "sqlcmd -S server -i D: Sandboxes CIA Project 3-Development Scripts DDL DDL_T_DDW_CIA_PRODUTO_INDEXADOR.sql"
System.Diagnostics.Process.Start(strScript)
Thank you
Updating
Includes double quotes, but error remains.
sqlcmd -S servidor -U sa -P senha -i "D:\Pessoal\luiz.junior\Documents\Visual Studio 2012\Projects\AppNolock\AppNolock\bin\x86\Debug\Temp\Script.sql"
Error:System cannot find specified file
Omni, sorry for the delay, I got caught up with another project. I did exactly what was mentioned by you, but the problem continues!!!
– Luiz Martinez