title: Get .sql file from SQL Server 2012 database
body: <p>I need to get .sql files from an existing database with SQL Server 2012.  Is this possible because all I see in the export option is delimited files.</p>
  
  <p>Ex.) I have table1 with 30 records.  I need a file that would be something like what is below.  (I know my syntax is incorrect, but you should get the point).</p>
  
  <pre><code>CREATE TABLE table1 (
      INSERT INTO table1 values (
     .......)
  </code></pre>