I want to script a table as Alter to a New Query Editor Window. But this option is disabled. How can I do this?
Use the "Design" function in SQL Server Management Studio to generate the ALTER script for you:
Depending on how you have your SSMS options set, this may not be available initially if the changes require tables to be dropped and re-created. To change this option, on the Tools menu, click Options, expand Designers, and then click Table and Database Designers. Select or clear the Prevent saving changes that require the table to be re-created check box.