using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.SqlClient;
namespace AddTableADO
{
    class Program
    {
        static void Main(string[] args)
        {
            SqlConnectionStringBuilder sb =
                new SqlConnectionStringBuilder();
            sb.DataSource = args[0];
            sb.IntegratedSecurity = true;
            sb.InitialCatalog = args[1];
            using(SqlConnection conn = new SqlConnection(sb.ToString()))
            {
                String sql = "CREATE TABLE " + args[2] + " (ID PRIMARY KEY IDENTITY, "
                + args[3] + " VARCHAR(256))";
                using (SqlCommand cmd = new SqlCommand(sql, conn))
                {
                    cmd.ExecuteNonQuery();
                }
            }
        }
    }
}
