次のように、コードの外側から sql create table ステートメントを実行するコードがあるとします。
SqlConnection connection = new SqlConnection(aConnectionString);
connection.Open();
string createTable = System.IO.File.ReadAllText("CreateTable.sql");
SqlCommand command = new SqlCommand(createTable, connection);
command.ExecuteNonQuery();
SQLステートメント文字列から直接解析せずに、新しく作成されたテーブルの名前を特定することは可能ですか?