You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,7 @@ We will be implementing command line switches and behaviors over time. Several s
23
23
- If `-N` is provided but `-C` is not, sqlcmd will require validation of the server certificate. Note that a `false` value for encryption could still lead to encryption of the login packet.
24
24
- If both `-N` and `-C` are provided, sqlcmd will use their values for encryption negotiation.
25
25
- More information about client/server encryption negotiation can be found at <https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-tds/60f56408-0188-4cd5-8b90-25c6f2423868>
26
+
-`-u` The generated Unicode output file will have the UTF16 Little-Endian Byte-order mark (BOM) written to it.
26
27
- Some behaviors that were kept to maintain compatibility with `OSQL` may be changed, such as alignment of column headers for some data types.
27
28
- All commands must fit on one line, even `EXIT`. Interactive mode will not check for open parentheses or quotes for commands and prompt for successive lines. The ODBC sqlcmd allows the query run by `EXIT(query)` to span multiple lines.
Copy file name to clipboardExpand all lines: cmd/sqlcmd/main.go
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -49,8 +49,10 @@ type SQLCmdArguments struct {
49
49
ErrorLevelint`short:"m" help:"Controls which error messages are sent to stdout. Messages that have severity level greater than or equal to this level are sent."`
50
50
Formatstring`short:"F" help:"Specifies the formatting for results." default:"horiz" enum:"horiz,horizontal,vert,vertical"`
51
51
ErrorsToStderrint`short:"r" help:"Redirects the error message output to the screen (stderr). A value of 0 means messages with severity >= 11 will b redirected. A value of 1 means all error message output including PRINT is redirected." enum:"-1,0,1" default:"-1"`
52
-
Helpbool`short:"?" help:"Show syntax summary."`
53
52
Headersint`short:"h" help:"Specifies the number of rows to print between the column headings. Use -h-1 to specify that headers not be printed."`
53
+
UnicodeOutputFilebool`short:"u" help:"Specifies that all output files are encoded with little-endian Unicode"`
54
+
// Keep Help at the end of the list
55
+
Helpbool`short:"?" help:"Show syntax summary."`
54
56
}
55
57
56
58
// Validate accounts for settings not described by Kong attributes
0 commit comments