LoginSignup
1
1

More than 5 years have passed since last update.

SQL Server Management StudioでExcelファイルのデータをインポートする方法

Posted at

30000レコード程あるデータの更新を依頼され、それがExcelファイルで渡された。
SQL Server Management StudioではExcelファイルをコピー&ペースト(以下コピペ)でinsertできる機能が備わっているようだ。

①insertするテーブルのフィールド数と同じセル数(1行当たり)で必要データをすべてコピー
②SQL Server Management Studioでinsertしたいテーブルを開き、最終行を右クリックし貼り付け

以上

私の場合は元データをすべて削除してからコピペinsertしたが、両方合わせて20分ぐらいかかった・・・

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1