Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

Permission to connect a database

$
0
0
I am new here and new to SQLExpress. Just went through Teach Yourself MSVS and loaded MS SQL Express. So, I am pretty new to this forum as well as the tools I am trying to pickup.I run into this problem in MSVS 2013 VB and would appreciate some pointers.I tried to connect a database to a project. In the project, I have checked the proper references (System.Data, System.Data.SqlClient). I tried to add connection but I got the following error message:MyTestDB.mdfYou don't have permission to open this file.Contact the file owner or an administrator to obtain permission.I've created MyTestDB.mdf with SQL Express. Why am I, not having permission for a file I created?And how to correct this problem?Thanks.

Viewing all articles
Browse latest Browse all 3145

Trending Articles