gsqlcmd Service Options

gsqlcmd 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 the actual /postData option value to the console.

For example:

gsqlcmd download https://localhost/crm/contacts /method=POST /postData=contact.json

/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