Could not open database; Login Failed

Asked By 10 points N/A Posted on -
qa-featured

Hello! As we are working on a project, we are experiencing some difficulties working on mdf database. We used Visual Studio 2008 Pro Edition in building our website that is created by C# Programming.

We made a database through Server ExplorerData connectionsCreate New SQL Server Database and insert localhostSQLEXPRESS and named the database as Event_Companio_Database. And then I moved the database mdf and ldf file from the primary location to App_Data folder.

But I could not rebuild connection with this error

Microsoft Visual Studio

Cannot open database “Event_Companion_Database” requested by the login. The login failed. Login failed for the user ‘Compal_FrancisInferno FS’.

Help me on this please.

SHARE
Answered By 0 points N/A #120225

Could not open database; Login Failed

qa-featured

Are you using the right login credentials to access the database? From the error message above it seems that the error is caused by the login credentials that you are using. The issue is probably:

  • You have forgotten the login credentials that you need to use to access the database. You should try using the default system login username and password and see if that will help you gain access to the database.
  • .The SQL server may be experiencing some sort of problem, and therefore you will need to restart it, and also restart the computer and see if that will help resolve the issue.

-Mathew Stone

Login/Register to Answer

Related Questions