using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.SqlServer.Management.Smo;

namespace ScriptDrop
{
    class Program
    {
        static void Main(string[] args)
        {
            Server server = new Server();
            Table customer = (Table)
            server.GetSmoObject(
            "Server/Database[@Name='Northwind']/Table[@Name='Customers')]");
            ScriptingOptions so = new ScriptingOptions();
            customer.Script(so.ScriptDrops);
        }
    }
}
