using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.SqlServer.Management.Smo;
namespace CreateTable
{
    class Program
    {
        static void Main(string[] args)
        {
            Server canopus5 = new Server("CANOPUS5");
            Database scratch = canopus5.GetSmoObject(
                "Server[@Name='CANOPUS5']/Database[@Name='scratch']") as Database;
            Table t = new Table(scratch, "Test456");
            t.Columns.Add(new Column(t, "ID", DataType.Int));
            t.Columns.Add(new Column(t, "Description", DataType.NVarChar(200)));
            t.Create();
        }
    }
}
