title: Attaching database to SQL Server 2016 using Management Studio 13
body: <p>When using the right-click option on 'databases' the 'Attach' option is not listed.</p>
  
  <p><a href="https://i.stack.imgur.com/CghAJ.jpg" rel="nofollow noreferrer">CODE EXAMPLE WITH ERROR</a></p>
  
  <p>I'm wondering if someone else has seen this before.</p>
  
  <p>I also get an error when I run this code instead:</p>
  
  <pre><code>CREATE DATABASE testdb 
  ON (FILENAME = 'C:\databasefile.mdf')
  FOR ATTACH_REBUILD_LOG
  GO
  </code></pre>
  
  <p>My SQL Server version is</p>
  
  <pre><code>select @@version
  </code></pre>
  
  <p>Microsoft SQL Azure (RTM) - 12.0.2000.8   Jul 10 2018 21:38:33</p>
  
  <p><a href="https://i.stack.imgur.com/sPy4U.jpg" rel="nofollow noreferrer">Attach option is missing</a></p>