Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Thu, 21 Aug 2008 13:30:40 -0700 (PDT),    group: microsoft.public.dotnet.distributed_apps        back       


MSDTC alternatives   
Since MSDTC needs quite a few ports open, is there a way to use
transactions within a Windows Forms application, using ADO.NET,
hitting 1 SQL server on another machine (firewalled) and not use
MSDTC?

Thanks
date: Thu, 21 Aug 2008 13:30:40 -0700 (PDT)   author:   G.S.

Re: MSDTC alternatives   
Why not just use local sql transactions?

If you don't have multiple resource managers that need to be 
coordinated, a distributed transactions coordinator is really overkill.

If you are using .NET 2.0+ you could use TransactionScope or 
connection.BeginTransaction() to get local transactions in the database, 
even from a remote windows forms application.

You can read more about this here:

TransactionScope: http://msdn.microsoft.com/en-us/library/ms172152.aspx
SqlTransaction: http://msdn.microsoft.com/en-us/library/86773566.aspx


-- 
Patrik Löwendahl
http://www.lowendahl.net
[MVP] [MCT - Enterprise Application Development]

G.S. skrev:
> Since MSDTC needs quite a few ports open, is there a way to use
> transactions within a Windows Forms application, using ADO.NET,
> hitting 1 SQL server on another machine (firewalled) and not use
> MSDTC?
> 
> Thanks
date: Fri, 17 Oct 2008 14:03:59 +0200   author:   Patrik Löwendahl [MVP]

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us