<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>utiowa</author_name>
  <author_url>https://blog.hatena.ne.jp/utiowa/</author_url>
  <blog_title>小物SEのメモ帳</blog_title>
  <blog_url>https://memorandom-nishi.hatenablog.jp/</blog_url>
  <categories>
    <anon>SQL Server</anon>
  </categories>
  <description>テストする際にテーブルのデータを一括でインポート・エクスポートする場合の方法の一つとしてbcpを使用することがありますが、オプションやフォーマットファイル出力のやり方をよく忘れるので覚書。 フォーマットファイルについては、bcpだけでなくBULK INSERTにも使えます。 bcpはコマンドラインからの実行になるので、バッチなどを作っておいて、簡単なテーブルバックアップ用のスクリプトなども作っておくと便利かと思います。 フォーマットファイルの作成 エクスポートやインポートをする対象テーブルのフォーマットファイルを作成します。 Syntax : bcp table_or_view format …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmemorandom-nishi.hatenablog.jp%2Fentry%2F2017%2F03%2F23%2F194013&quot; title=&quot;【SQL Server】bcpを使用したインポートとエクスポート - 小物SEのメモ帳&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>https://cdn-ak.f.st-hatena.com/images/fotolife/u/utiowa/20170323/20170323192637.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-03-23 19:40:13</published>
  <title>【SQL Server】bcpを使用したインポートとエクスポート</title>
  <type>rich</type>
  <url>https://memorandom-nishi.hatenablog.jp/entry/2017/03/23/194013</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
