Error: “The query builder failed. Cannot open user default database. Login failed. Login failed for user <User Name>”

北城以北 提交于 2019-12-24 10:56:34

问题


I'm using Visual Basic Express 2010 and SQL Express 2008 in Windows XP.

At first I couldn't add a datasource (the .mdf file for the database) because of a "Operating system error 32" which I seemed to have resolved by giving myself full permissions for .mdf file (by right clicking on the file and going into properties and then Security) and restarting the SQL SERVER (SQLEXPRESS) service.

The dataset for the database is in my solution explorer but when I right click on a table adapter to add a query and attempt to open up the query builder, I get the error in the title above.


回答1:


  1. Ensure that SQL Express remote connections via TCP/IP and Named Pipes is enabled. You can refer to this article if you are not sure how to do that: How to: Configure Express to accept remote connections

  2. Open SQL Server Management Studio and ensure that you can connect to the database.

  3. Try reconnection from Visual Studio (Server Explorer window) using the same credentials.



来源:https://stackoverflow.com/questions/10504863/error-the-query-builder-failed-cannot-open-user-default-database-login-faile

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