title: Can't attach database to SQL Server 2012 reason not found .log
body: <p>I am trying to attach the <code>AdventureWorks2012_Data.mdf</code> database file to my SQL Server 2012 database.</p>
  
  <p>I am getting this error:</p>
  
  <blockquote>
    <p>TITLE: Microsoft SQL Server Management Studio</p>
    
    <p>Attach database failed for Server 'USER-PC'.  (Microsoft.SqlServer.Smo)</p>
    
    <p>For help, click: <a href="http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&amp;ProdVer=11.0.3000.0+((SQL11_PCU_Main).121019-1322+)&amp;EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&amp;EvtID=Attach+database+Server&amp;LinkId=20476" rel="nofollow">http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&amp;ProdVer=11.0.3000.0+((SQL11_PCU_Main).121019-1322+)&amp;EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&amp;EvtID=Attach+database+Server&amp;LinkId=20476</a></p>
    
    <p>ADDITIONAL INFORMATION:</p>
    
    <p>An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)</p>
    
    <p>Unable to open the physical file "C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\AdventureWorksDW2012_log.ldf". Operating system error 2: "2(failed to retrieve text for this error. Reason: 15105)". (Microsoft SQL Server, Error: 5120)</p>
  </blockquote>
  
  <p>Maybe the message is clear that I don't have the <code>.log</code> file and yes I don't have it. But is it necessary to have it? Or is there is another thing? How can I solve that please?</p>