後述のコマンドを実行するため、下記のようにSQLCMDコマンドプロンプトに入ります。 sqlcmd -U sa -P SA-PASSWORD -S localhost\SQLEXPRESS テーブル作成 †スキーマを省略した場合はdboという名称のスキーマ内に作成される。 1> use testdb 3> CREATE TABLE testschema.testtable (id int) 2> GO テーブル削除 †1> use testdb 3> DROP TABLE testschema.testtable 2> GO テーブル一覧 †1> select name from sys.tables 2> GO テーブル構造を見る †1> sp_columns 'testtable' 2> GO 一時テーブル作成 †CREATE TABLE #Temptable ( ID int NOT NULL, UserID int NULL, UserName int NOT NULL ) セシウム137を97.7%吸着 コメント: |