TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Kaneshapillai Sathulan
NA
30
9.4k
problem
Apr 23 2013 4:18 AM
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
i saw this problem when i connect my visual studio 2010 and ms server 2008
string connstring = "server=Data Source=KSADULAN-PC\\SQLEXPRESS;Initial Catalog=Hanumantha;Integrated Security=True";
Cone = new SqlConnection(connstring);
Cone.Open();----------------------(here problem start)
Come=new SqlCommand("insert into cheque values("+chno.Text+","+amo.Text+","+Date.Text+","+Towhom.Text+","+Purpo.Text+"')",Cone);
try
{
Come.ExecuteNonQuery();
MessageBox.Show("Saved............");
}
catch (Exception)
{
MessageBox.Show("not saved......");
}
finally
{
Cone.Close();
}
this is my code please consider it.now i am waiting to your answer
Reply
Answers (
1
)
C# process.start runs multiple times instead of one
other problem