createコマンドを使う。以下はtestdbというデータベースで、tempというテーブルを作成し、すぐに削除した例。
1> use testdb; 2> create table temp (no int, name varchar); 3> select * from temp 4> go データベース コンテキストが 'testdb' に変更されました。 no name ----------- ---- (0 行処理されました) 1> drop table temp; 2> go 1> select * from temp 2> go メッセージ 208、レベル 16、状態 1、サーバー ○○○\SQLEXPRESS、行 1 オブジェクト名 'temp' が無効です。