title: How to export SQL Server database structure into text format
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/483568/how-can-i-automate-the-generate-scripts-task-in-sql-server-management-studio-20">How can I automate the &quot;generate scripts&quot; task in SQL Server Management Studio 2008?</a>  </p>
  </blockquote>
  
  
  
  <p>I need to export structure of my SQL Server database into a .sql script(s) without management studio.</p>
  
  <p><strong>UPDATED</strong></p>