Skip to content

Commit 839767e

Browse files
Add -p flag documentation to README
1 parent e4621c7 commit 839767e

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,21 @@ client_interface_name go-mssqldb
163163
program_name sqlcmd
164164
```
165165

166+
- The `-p[1]` flag prints performance statistics after each result set. Use `-p` for human-readable format or `-p1` for colon-separated format suitable for scripts.
167+
168+
```
169+
1> select 1
170+
2> go
171+
172+
-----------
173+
1
174+
175+
(1 row affected)
176+
Network packet size (bytes): 4096
177+
1 xact(s):
178+
Clock Time (ms.): total 15 avg 15 (66.67 xacts per sec.)
179+
```
180+
166181
- `sqlcmd` supports shared memory and named pipe transport. Use the appropriate protocol prefix on the server name to force a protocol:
167182
* `lpc` for shared memory, only for a localhost. `sqlcmd -S lpc:.`
168183
* `np` for named pipes. Or use the UNC named pipe path as the server name: `sqlcmd -S \\myserver\pipe\sql\query`

0 commit comments

Comments
 (0)