I just installed SQL Server 2012 Express edition on my computer (Windows 8).
When I try to create a database from the Management studio, I'm getting the following error:
Create failed for Database 'TestDB'. (Microsoft.SqlServer.Smo)
CREATE DATABASE permission denied in database 'master'.
(Microsoft SQL Server, Error: 262)
When I try to access it from the visual studio, I'm getting the following similar error message:
CREATE DATABASE permission denied in database 'master'.
Is there any reason for that? I can't even access the engine from the management studio.
EDIT
Here's my connection string
<add name="DefaultConnection"
connectionString="Data Source=localhost\sqlexpress;Initial
Catalog=OptimumWeightDB;Integrated Security=True;
Integrated Security=True;
User Id=sa;Password=mypassword" "
providerName="System.Data.SqlClient" />
This is the context class
public class OWDbContext : DbContext
{
public OWDbContext()
: base("DefaultConnection") { }
}