title: CREATE DATABASE permission denied in database 'master' - using Web Deploy, EF Code First, Visual Studio
body: <p>Visual Studio 2012 Express, EF5, Code First Migrations, Web Publish.</p>
  
  <p>I am doing a web publish from a Windows 8 Laptop to a Windows Server 2008 R2 web server using Web Deploy from Visual Studio 2012.</p>
  
  <p>The files are uploaded fine. But I get this error:
  CREATE DATABASE permission denied in database 'master'</p>
  
  <p>When Code first tries to create the database.</p>
  
  <p>The Web Publishing wizard uses a windows user to login - that user has db_owner permissions on the master database.</p>
  
  <p>Exactly what do I need to do to grant CREATE DATABASE permissions? (or see which user tried to do it - the error doesn't report that for some reason?!).</p>
  
  <p>Thanks.</p>