title: SQL Server Management Studio 2008 R2 Export Structure + Data
body: <p>I want to export the structure and data in my database into a .sql file to then execute as a query on another machine. </p>
  
  <p>Any ideas on how this can be achieved? I have tried using the database import/export wizards to no avail...</p>