Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1016405
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T10:32:39+00:00 2026-05-16T10:32:39+00:00

I have a VB.NET windows application that when I debug it, it opens the

  • 0

I have a VB.NET windows application that when I debug it, it opens the connection. At that point I can see there are two processes created by going to the Activity Monitor in SQL Server Management Studio. I execute my query and then immediately close the connection. However, when I do that the processes do not go away.

For the life of me I can’t figure out why not. This hasn’t been a problem except that I have a Restore option within the software that doesn’t let me restore because the database is in use due to the processes still being open. They do not go away until I exit the application.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T10:32:40+00:00Added an answer on May 16, 2026 at 10:32 am

    Probably this is just because ADO.Net actually keeps the connection open so you can use it later. This is called connection pooling. Opening and closing connections is an expensive process and connection pooling helps to reduce this cost.

    With regards to your restore problem, you can execute SQL to close all open connections on a database. Don’t have access to SQLMS at the moment, but if you fill in the delete database dialog with the ‘close existing connections’ option checked and then output the dialog to SQL you will see it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a .NET Windows service and a .NET Web Application that I would
I have a .NET 2.0 targeted C# windows forms application that is running fine
I have a .NET application that contains a checkbox (System.Windows.Forms.Checkbox). This component (WindowsForms10.BUTTON.app.0.378734a1) is
I have a Windows.Forms based .NET desktop application that stores privileged information in a
Im using c# .net windows application form. I have created many databases with many
Im using c# .net windows form application. I have many databases created using sql
I have a Windows Forms application (.NET 4) that runs fine on my development
I have a .NET Windows application in the production that has no access to
I have a .net 2.0 web application that is running on Windows server 2003
I have created a Windows Forms Application project by Visual Studio.Net 2008. In order

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.