Re: Best connection management
- From: Ekrem Önsoy <ekrem@xxxxxxxxxxxx>
- Date: Fri, 7 Sep 2007 12:13:21 +0300
It depends on your hardware resources (especially RAM) on your SQL Server server.
--
Ekrem Önsoy
MCBDA, MCTS: SQL Server 2005, MCSD.Net, MCSE, MCT
"Hornet77" <neuro@xxxxxxxxxx> wrote in message news:uWgF0HS8HHA.3624@xxxxxxxxxxxxxxxxxxxxxxx
Hi all
I'm developing a software written in c# (.NET 2.0) with a SQL server 2005 database. I have 3 modules that need to access database:
- a simple ASP.NET website receiving event from remote devices via https calls
- a windows service running 24/7 that act as a server
- a winform application running as a client with user interface, launched by the user
3 modules use .NET remoting to communicate.
In order to query DB actually I'm using a single connection for each module, always opened (for the ASP.NET site I use a static instance of my "dbManager" class)... when I neeed to query the database I use the already opened connection and leave it opened for further operation.
Is this acceptable? what kind of problems can cause? Should I use another approach (open and close connection for every operation)?
Thanks in advance
.
- Follow-Ups:
- Re: Best connection management
- From: Hornet77
- Re: Best connection management
- References:
- Best connection management
- From: Hornet77
- Best connection management
- Prev by Date: Re: SQL Server 2005 port?
- Next by Date: Re: SQL Server 2005 port?
- Previous by thread: Best connection management
- Next by thread: Re: Best connection management
- Index(es):
Relevant Pages
|
Loading