Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
|
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 12th, 2003, 01:11 PM
Registered User
 
Join Date: Oct 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to octopus
Default ...my server SQL is closed?!?

hi
i have a problem with my "personal" application and server SQL: in my application i've constructed a class to comunicate with a server SQL by ADO.NET but when i close the application the server SQL becomes CLOSED.
i didn't find the cause of this.
can anyone help me?
THANKS

antonio

 
Old October 14th, 2003, 08:41 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

What do you mean the SQL server becomes closed? Do you mean the connection to it becomse closed when you close the application? That's the way it should work. You shouldn't leave connections open. .Net will clean things up when an application is closed, and I believe that closing open connections is one of those things.

Peter
 
Old October 15th, 2003, 01:46 AM
Registered User
 
Join Date: Oct 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to octopus
Default

hi, peter
i'm going to explain it better.
i've ServiceManager's tray icon which monitorizes SQLServer's status.
then, when i close my application the icon indicates the server stopped.
and MSSQLServer's status is STOP.

maybe i solved the problem:
this problem arises when i suspend the thread which cyclically reads from the server SQL and then i call the method System.Windows.Forms.Application.Exit().
maybe the solution is to abort the suspended thread before closing the application.
the problem seems solved...


THANKS, antonio





Similar Threads
Thread Thread Starter Forum Replies Last Post
Conflict in SQL Server 2000 and SQL Server 2005 ayan.mukherjee SQL Language 0 June 30th, 2008 03:34 AM
SQL Server Reg. SQL Server does not exist error Arsi SQL Server 2000 1 June 11th, 2008 11:20 AM
[Closed] FTP to Remote Server snufse ASP.NET 2.0 Basics 2 March 7th, 2008 01:17 PM
migrating from sql server 2000 to sql server 2005 abinashpatra SQL Server 2005 2 December 1st, 2006 03:45 PM
SQL Server sync with net server and browser server ne SQL Server DTS 0 June 13th, 2005 06:29 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.