Making SSDT just generate a SQL script (and not deploy a database)

noonand picture noonand · Apr 5, 2012 · Viewed 10.1k times · Source

Having recently upgraded to SSDT 2012 I seem to be missing the option to just generate a T-SQL script instead of deploying the database to a server somewhere.

To be more accurate the predecessor to SSDT used to set the Deploy action to 'Generate script', but I cannot locate that option anywhere in the new version.

Is it possible?

Answer

Lynn Langit picture Lynn Langit · May 25, 2012

To generate a script from an offline data project in SSDT rather than deploy to a target database, configure the project settings as shown below

SSDT deployment configuration dialogue boxes