Get .sql file from SQL Server 2012 database
If you just want to generate a .sql script you can do this by right-clicking the database in Object Explorer and choosing Tasks > Generate Scripts: Then you can select database and all objects, or you can select just the table you want: Then select a location, and be sure to go into Advanced before … Read more