HomeSQL ServerAuto generate change scripts in SQL Server Management Studio

Auto generate change scripts in SQL Server Management Studio

SQL Server Management Studio has a feature that lets you to automatically generate Create or Alter scripts when using the table designer .

Auto generate change scripts in SQL Server Management Studio

By deafult , this option is disabled . You can enable it by following the below steps

1. Start SQL Server Management Studio

2. Click Tools -> Options

Auto generate change scripts in SQL Server Management Studio - 1
Auto generate change scripts in SQL Server Management Studio – 1

3. Click Designers in the TreeList in the Options Dialog and select the option “Auto Generate Change Scripts” and click OK

Auto generate change scripts in SQL Server Management Studio - 2
Auto generate change scripts in SQL Server Management Studio – 2

4. Now , for test , try adding a column to an existing table and Save it . You will be prompted to save the change script .

Auto generate change scripts in SQL Server Management Studio - 3
Auto generate change scripts in SQL Server Management Studio – 3

Leave a Reply

You May Also Like

When dealing with a relational database management system (RDBMS) like SQL Server, compatibility level is an important concept to understand....
In this blog post, let’s learn about the error message “49975 – Unable to load controller client certificate due to...
In this blog post, let’s learn about the error message “49973 – Cannot remove tempdb remote file to local tempdb...