System.Data.SqlClient.SqlException (0x80131904): Cannot open database login failed
database cannot connecting
plz help ....
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Hemant SrivastavaRank #581 · 4.2K reputationPosted Jul 8, 2014, 11:25 AM EDT
Looks like something typo error in your connection string
How are entering database connection string? Can you paste your code?
Abhay ShankerRank #375 · 6.7K reputationPosted Jul 8, 2014, 7:24 PM EDT
Sanjay KumarRank #561 · 4.3K reputationPosted Jul 8, 2014, 8:41 PM EDT
connectionString="Data Source=.;Initial Catalog=LMS;User ID=sa;Password=temperament"
otherwise, you need to specify the name of the instance of the server,
connectionString="Data Source=.\INSTANCENAME;Initial Catalog=LMS;User ID=sa;Password=temperament"
https://www.connectionstrings.com/sql-server-2012/
Isham KhanRank #2,573 · 543 reputationPosted Jul 9, 2014, 10:35 AM EDT
Isham KhanRank #2,573 · 543 reputationPosted Jul 9, 2014, 10:36 AM EDT
Abhishek JaiswalRank #126 · 17.5K reputationPosted Jul 14, 2014, 9:58 PM EDT
try this
:)
Dipankar BiswasRank #992 · 2K reputationPosted Aug 1, 2014, 1:02 AM EDT