<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tei5</author_name>
  <author_url>https://blog.hatena.ne.jp/tei5/</author_url>
  <blog_title>Tei5’s Blog</blog_title>
  <blog_url>https://tei5.hateblo.jp/</blog_url>
  <categories>
    <anon>SQL Server</anon>
  </categories>
  <description>１）「n件処理されました。」を消す SQLCMDで出力時、最後に、「n件処理されました。」も出力されてしまう。これを出ないようにするには、SQLの中に「set nocount on」を書いておく。 ２）２行目の「---,---」を取りたい ヘッダーを消すのは、sqlcmdのオプションに「 -h -1 」を付けると、ヘッダーと、２行目の「---」が消える。２行目だけ消すのは出来ないみたい。 SQLCMDでハイフンを抑制する方法 : 初心者入門サンプル 対策A）出すだけ出して、２行目をsedやawkで抜く。 （例）sqlcmd ~~~~ | gawk &quot;NR!=2{print}&quot; 対策B）ヘッダー…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftei5.hateblo.jp%2Fentry%2F2019%2F08%2F17%2F152552&quot; title=&quot; Sqlcmd から、CSVの出力を整えたい - Tei5’s Blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-08-17 15:25:52</published>
  <title> Sqlcmd から、CSVの出力を整えたい</title>
  <type>rich</type>
  <url>https://tei5.hateblo.jp/entry/2019/08/17/152552</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
