输出示例:
#TYPE System.Data.DataRow <---
"PersonalNr" <---
"00001005"
"00001008"
"00001009"
"00001013"
"00001019"
"00001024"
要求:
我想要一个没有前 2 行且没有引号符号的输出,我该怎么做?
对于标题,我尝试了选项-h -1
,但输出仍然相同。甚至有可能Sqlcmd
吗?
当前代码:
Invoke-Sqlcmd -ServerInstance SERVER -h -1 -Query $QueryFmt | Export-CSV $AttachmentPath