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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Feroz KhanPosted Apr 7, 2015, 11:32 AM
Gowtham RajamanickamPosted Apr 5, 2015, 11:14 PM
Pankaj Kumar ChoudharyPosted Apr 5, 2015, 12:24 PM
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
Anoop Kumar SharmaPosted Apr 5, 2015, 11:29 AM
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"