title: entity framework 4.1 code first CREATE DATABASE permission denied in database 'master'
body: <p>I have created a generic repository project using Entity Framework 4.1 and it works great with my projects when added as an existing project to them but it doesn't work on them when just referenced as dll.</p>
  
  <p>I get this error </p>
  
  <blockquote>
    <p><em>CREATE DATABASE permission denied in database 'master'.</em></p>
  </blockquote>
  
  <p>but I have added <code>app.config</code> file and set relevant connection string to my SQL Server 2005 database (I have used <code>DbContext</code> as type my context)</p>
  
  <p>Please help me.</p>
  
  <p>Here is my connection string : </p>
  
  <pre><code>&lt;configuration&gt;
     &lt;connectionStrings&gt;
        &lt;add name="TasksEntities" 
             connectionString="server=(local); database=Tasks; trusted_connection=false; User=sa; Password=****; Persist Security Info=True" 
             providerName="System.Data.SqlClient"/&gt;
    &lt;/connectionStrings&gt;
  &lt;/configuration&gt;
  </code></pre>