How can i connect network Sql database in my C# project..
Showing Below Error.. Please tell me how can i resolve below issue..

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
Anoop Kumar SharmaRank #127 · 17.4K reputationPosted Apr 5, 2015, 7:29 AM EDT
Please check your connection string in your C# project. May be you are using wrong / Incorrect connection string.
Hope this will help you.
..................................................................................................................................
If this post is useful then mark it as "Accepted Answer"
Pankaj Kumar ChoudharyRank #80 · 24.4K reputationPosted Apr 5, 2015, 8:24 AM EDT
new SqlConnection("data source=pankaj-pc\\mssqlserver2; initial catalog=Employee;integrated security=true"); for it you can
use you Sqlserver window select name from here and put an extra "\" then check your connect.
second reson may be that your server not allow remote accessing you can find solution of this particular problem here:
http://www.technologycrowds.com/2014/02/could-not-open-connection-to-sql-server.html
Gowtham RajamanickamRank #57 · 29K reputationPosted Apr 5, 2015, 7:14 PM EDT
Feroz Khan69 reputationPosted Apr 7, 2015, 7:32 AM EDT