HighTechTalks DotNet Forums  

ADO.Net and transaction locking

Dotnet Framework (ADO.net) microsoft.public.dotnet.framework.adonet


Discuss ADO.Net and transaction locking in the Dotnet Framework (ADO.net) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Robert Strickland
 
Posts: n/a

Default ADO.Net and transaction locking - 08-30-2007 , 01:14 PM






Earlier today I was in a discussion with the team's DBA on where explicit
database transaction locks should be placed - in the .Net application or in
the stored procedures. This can up when we ran into some concurrency
problems for our web application. Is here any guidelines or standards on
where the best place is for explicit locks? We use SQL Server 2000 and 2005
only (no Oracle and MySql). However, we do have several databases that make
up the datasource for the applications. All of the T-SQL code is in stored
procedures.

Also, with the CLR now in SQL Server 2005, is there push to move business
code from the business layer directly into SQL Server?

Thanks
Bob



Reply With Quote
  #2  
Old   
Mary Chipman [MSFT]
 
Posts: n/a

Default Re: ADO.Net and transaction locking - 08-31-2007 , 11:59 AM






As a general rule, it's always better to have explicit transactions
executing on the server, not from the client. You have more control
using stored procedures (error handling, wait queues, etc) than you do
from the client where more round trips are involved. As far as pushing
business code to the server, that's not what the CLR was designed for.
It's useful for procedural code that would otherwise require
non-performant server-side cursors or the like. T-SQL was never a true
programming language, and the CLR fills in the gaps.

-mary

On Thu, 30 Aug 2007 13:14:23 -0400, "Robert Strickland"
<bstrickland (AT) comporium (DOT) net> wrote:

Quote:
Earlier today I was in a discussion with the team's DBA on where explicit
database transaction locks should be placed - in the .Net application or in
the stored procedures. This can up when we ran into some concurrency
problems for our web application. Is here any guidelines or standards on
where the best place is for explicit locks? We use SQL Server 2000 and 2005
only (no Oracle and MySql). However, we do have several databases that make
up the datasource for the applications. All of the T-SQL code is in stored
procedures.

Also, with the CLR now in SQL Server 2005, is there push to move business
code from the business layer directly into SQL Server?

Thanks
Bob


Reply With Quote
  #3  
Old   
Robert Strickland
 
Posts: n/a

Default Re: ADO.Net and transaction locking - 09-03-2007 , 10:29 AM



Thanks

"Mary Chipman [MSFT]" <mchip (AT) online (DOT) microsoft.com> wrote

Quote:
As a general rule, it's always better to have explicit transactions
executing on the server, not from the client. You have more control
using stored procedures (error handling, wait queues, etc) than you do
from the client where more round trips are involved. As far as pushing
business code to the server, that's not what the CLR was designed for.
It's useful for procedural code that would otherwise require
non-performant server-side cursors or the like. T-SQL was never a true
programming language, and the CLR fills in the gaps.

-mary

On Thu, 30 Aug 2007 13:14:23 -0400, "Robert Strickland"
bstrickland (AT) comporium (DOT) net> wrote:

Earlier today I was in a discussion with the team's DBA on where explicit
database transaction locks should be placed - in the .Net application or
in
the stored procedures. This can up when we ran into some concurrency
problems for our web application. Is here any guidelines or standards on
where the best place is for explicit locks? We use SQL Server 2000 and
2005
only (no Oracle and MySql). However, we do have several databases that
make
up the datasource for the applications. All of the T-SQL code is in stored
procedures.

Also, with the CLR now in SQL Server 2005, is there push to move business
code from the business layer directly into SQL Server?

Thanks
Bob




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.