473,386 Members | 1,609 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Could not open a connection to SQL Server

Not to worry I have found a solution For the past two weeks I have been developing a program in C# that uses LINQ to SQL to access the database. Everything has been working just fine, with lots of help from DOTNETPEARLS. I have been testing the program successfully for the past few days, making minor adjustments here and there for cosmetic purposes. Today, while testing, I got error in C#, something about the program could not start, I cannot recall exactly the error, and no matter how many times I tried to run my program I got the same error. So, when in doubt, restart the machine, which I did, and now I get the following error...
A network-related or instance-specific error occurred whil 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: Shared MemoryProvider, error: 40 - Could not open a connection toSQL Server)
I am not an SQL fundi, so please how do I verify the instance name, and why it wants to allow remote connections beats me, it's on a stand alone machine.

Any suggestions anyone?

Joe
Apr 5 '12 #1
2 2267
ck9663
2,878 Expert 2GB
Did you change anything else?


~~ CK
Apr 6 '12 #2
@ck9663
Not as far as I am aware. I admit I had Management Studio open, but that was just for me to check if my C# program was picking up the correct record, but at the time of testing my C# program I had not utilized Management Studio for some time, and during that time I had made numerous test runs with the C# program successfully.

Joe
Apr 7 '12 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: PAM | last post by:
Hello I'm a newbie trying to open a connection to an Excel file in a deployed ASP .NET app and get the error Dim MyCommand As New OleDbCommand(mySelectQuery, MyConnection MyConnection.Open(
5
by: Owen | last post by:
Hello: How know how many open connection have my application made in asp.net?, To know if a open a new connection and not close? Best regards. Owen.
2
by: Rafi B. | last post by:
Sorry for the English. I mean, when building my applications, I often need to do several database actions, and I'm thinking, what's better? 1) Open connection with DB, for instance mySQL, at...
1
by: Michael Swinarski | last post by:
I am working on setting up our new SQL Server 2005 servers. One of them will eventually be our Replication Distributor. However when I attempt to set this up within the wizard, I get the...
12
idsanjeev
by: idsanjeev | last post by:
how to open connection in oracle for displying and inserting data in asp.net with vb
1
by: Bruno Marinho | last post by:
Hi, I'm having a problem creating an OU entry on a Open LDAP Server. I'm using the code below. $ad = ldap_connect("ldap://srvldap"); ldap_set_option($ad, LDAP_OPT_PROTOCOL_VERSION, 3); $bd =...
1
by: Noorain | last post by:
hi, i create a php file. which function is: i)to refresh a certain time ii)create txt file with some query. i want to this php file always open in server and refresh after 5 minutes. i know...
2
by: KKAIYER | last post by:
I am using VB6,SQL Server,Crystall reports. when I run vb to print report crystal repots giving error 20599 cannot open SQL Server. what is the reason and what is the solution. Please help
1
by: vj4u | last post by:
i want to open sql server on button click in asp.net
1
by: Vinayak Pangam | last post by:
When I open the server it shows a duplicate name exists on the network. It affects the workstation also. I also check in all pc no duplicate name exits. Please give me a solution what is the exact...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.