SQL server won't open DB created by Visual Studio

早过忘川 提交于 2019-12-05 08:57:44

If on Windows Vista or higher, try opening SQL Server Management Studio by right clicking and saying "Run as Administrator". As Mitch mentioned maybe it is just a permissions issue. Then try attaching to the database.

Error 5 is usually permissions related. Do you have permissions to access the file in it's location?

If you've created it in Visual Studio, it's most likely an Express database. SQL Server does not support "user mode" database connections which SQL Server Express use. Despite sharing a name, they are two fairly distinctive and different technologies.

To view the contents of an SQL Express database (ie- created in Visual Studio) I just use the Visual Studio server explorer.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!