Re: SqlConnection and DB connection failures detection
- From: "Willy Denoyette [MVP]" <willy.denoyette@xxxxxxxxxx>
- Date: Tue, 19 Sep 2006 17:32:21 +0200
"Tomasz" <tomasz.szkudlarek@xxxxxxxxx> wrote in message
news:1158652443.301957.248280@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
| Ignacio Machin ( .NET/ C# MVP ) wrote:
| > >> Why ?
| > >> This will seriusly hamper the performance/scalability of both the DB
and
| > >> the
| > >> app
| > >
| > > So, should i connect each time i want to launch a query (only insert
| > > queries i'm performing)?
| >
| > YES !!
|
| Ok, i changed this - my code is now much more simplified!
| Now question - after performing insert query I'm closing connection,
| but my process still exists in SQL Server Activity Monitor (even if i
| close my app) with "Sleeping" status. I believe that this is what you
| said about functionality of MS SQL (Damm i will order an MS SQL
| bible-like book immediatelly!). How long server will keep this process
| ?
The physical connection drops after ~6 minutes, provided no logical
connections exists.
Is it good idea to play with such timeouts to improve performance
| (App is going to work 24h/day)?
|
No.
| Then second question - I'm using SQL Server authentication instead of
| AD one, i think this is better solution for more missions-critical
| apps, is it true ?
Authentication is all about security, not about being mission-critical. When
using integrated security, there is no way to expose the credentials used to
authenticate, while using SQL authentication, you can expose your secrets.
Theoretically even if the whole my network is down
| this application will still work (SQL server is on the same PC). What
| would you say ?
|
Yep. And authentication is less of a concern, credentials aren't going over
the network anyway.
Willy.
.
- References:
- SqlConnection and DB connection failures detection
- From: Tomasz
- Re: SqlConnection and DB connection failures detection
- From: Ignacio Machin \( .NET/ C# MVP \)
- Re: SqlConnection and DB connection failures detection
- From: Tomasz
- Re: SqlConnection and DB connection failures detection
- From: Ignacio Machin \( .NET/ C# MVP \)
- Re: SqlConnection and DB connection failures detection
- From: Tomasz
- SqlConnection and DB connection failures detection
- Prev by Date: Re: How to properly get Handle of started process?
- Next by Date: Re: Code generators: Do you guys use them?
- Previous by thread: Re: SqlConnection and DB connection failures detection
- Next by thread: Re: SqlConnection and DB connection failures detection
- Index(es):
Relevant Pages
|
Loading