Service Options

Service Options

/echo

Use this option to print the command line arguments to the console.

/echoInputFileName

Use this option to print input file names to the console.

For example:

gsqlcmd convert input\*.csv data.csv /echoInputFile

/echoOutputFileName

Use this option to print output file names to the console.

For example:

gsqlcmd download @sitemap.txt *.htm /echoOutputFile

/echoPostData

Use this option to print actual /postData option value to the console.

For example:

gsqlcmd download @sitemap.txt *.htm /echoUrl

/echoUrl

Use this option to print downloaded URLs to the console.

For example:

gsqlcmd download @sitemap.txt *.htm /echoUrl

/echoWidth=<width>

Use this option to set the maximum width of the echo lines.

For example:

gsqlcmd download @sitemap.txt *.htm /echoUrl /echoWidth=80

/hideWindow

Use this option to hide the console window during the command execution.

/minimizeWindow

Use this option to minimize the console window during the command execution.

/openOutput

Use this option to open the output file at the end of processing.

For example:

gsqlcmd exec db "SELECT * FROM dbo.cashbook" cashbook.htm /openOutput
This website is using cookies. By continuing to browse, you give us your consent to our use of cookies as explained in our Cookie Policy.