Is there a way to export DDL for SQL Server 2012?
A previous question of this nature was answered in Dec 2009, but it does not seem to apply, Previous answer: For SQ
I assume you want to script the DDL from a particular database on your SQL Server 2012 instance. To do so you click on the database of interest in SSMS, then right click and then hover over 'Tasks >', and then across and down to click on 'Generate Scripts'. This will open the wizard as shown in the three screen shots below. Tip: Be sure to check out the scripting options on the 'Advanced' tab.