visual studio 2015 - Entity Framework 7 code first error CREATE DATABASE permission denied in database 'master' -


i'm using vs2015 vnext/asp.net5 wint ef7. config.json file has following value

"testcontextconnection": "server=.\\sqlexpress;database=testdb;trusted_connection=true;multipleactiveresultsets=true" 

whenever run project following error

create database permission denied in database 'master'. 

can please explain, don't know user i'm referring here active directory user or other dbuser? rights i've assign user in order code work successfully? if have create new user scratch required permissions this?

thanks in advance.

do need use testdb database on sqlexpress server, or trying , running?

if trying , running, try using following connection string: server=(localdb)\\mssqllocaldb;database=<database_name>;trusted_connection=true;multipleactiveresultsets=true


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -