0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

SQL Server 2008 R2 でテーブル構造を取得

Last updated at Posted at 2019-02-04

SQL Server 2008 R2 でのデータベースのテーブル構造を取得します。

環境

  • Microsoft SQL Server 2008 R2
  • Windows 2003 Foundation

付属の SQL Server Management Studio での操作方法

GUIのオブジェクトエクスプローラーから該当データベースを右クリック→タスク→スクリプトの生成

  • 「データベース オブジェクトのスクリプトを作成します。」で「次へ」
  • 「スクリプトを作成するデータベース オブジェクトを選択します。」で「特定のデータベース オブジェクトの選択」を選ぶ
  • 必要なテーブルにチェックを付けて「次へ」
  • ファイル名などを指定して「次へ」
  • 内容を確認して「次へ」をすると出力されます
0
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
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?