• Easiest way is

    In SSMS, expand database, expand tables, right click table, expand script table as, expand create to, click new query editor window.