Solved

VB.net problem connecting to local machine

Posted on 2014-10-20
4
120 Views
Last Modified: 2014-10-24
Hi
I am having a problem connecting to my local SQL from VB.net.
The problem is intermittent and often goes away when I restart my machine.
If I look at my processes in the image below, what can I stop to connect to SQL again.
I am not familiar with these process names and have only been using SQL management studio
for about a year.
Is there anything else that I can do?
Thanks

1
0
Comment
Question by:murbro
4 Comments
 
LVL 47

Expert Comment

by:Vitor Montalvão
ID: 40391463
What's the error message?
0
 
LVL 40

Accepted Solution

by:
Jacques Bourgeois (James Burger) earned 250 total points
ID: 40391468
The problem probably comes from your code, so that is where I would look first. You might be starting transactions without committing them. You might be opening connections without closing them. I you could explain what you mean by "having a problem connecting ", we would be in a better place to help you.

Stopping an restarting services is not a good thing to do with SQL Server. There are more than the ones you show here. You are better to restart the computer, so that SQL Server can do the proper cleanup before closing, and restart in the proper sequence afterward.
0
 
LVL 16

Assisted Solution

by:Kamal Khaleefa
Kamal Khaleefa earned 250 total points
ID: 40394169
ALSO MAKE SURE THE SERVICES FOR SQL ARE RUNNING FROM SERVICES
0
 

Author Closing Comment

by:murbro
ID: 40401153
Thanks
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
I have a large data set and a SSIS package. How can I load this file in multi threading?
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

815 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now