I have installed SQL server in the local machine,i want to execute a script file through command window editor.I have the script file 'samplescript.sql' on the desktop.my command is
C:\>sqlcmd -E -Srvreddy\principal -ic:\samplescript.sql
im getting the error as
sqlcmd: 'c:\samplesctipt.sql': invalid filename.
Is there anything wrong in my syntax? Im using windows authentication here.
Thanks in advance..