title: How to make my SQL Server Management Studio accept a .sql file
body: <p>I have a .sql file I need to enter in to my database, but I can't find how to do it.</p>
  
  <p>I'm using SQL Server Management Studio R2, but haven't found any options on how to add it.</p>
  
  <p>When I try to attach it, I'm told that this file isn't a primary database file, so I can't do it...</p>
  
  <p>EDIT: okay, I had the script execute. That worked.</p>