Windows Communication Foundation ("Indigo") Forum

Indigo has its own forum now:http://forums.microsoft.com/msdn/ShowForum.aspx?ForumID=118The forum is one more way in which you can interact with the Indigo team and its community.  See you there!

0

Why and When to use transactions?

Many people ask – do I need transactions? Why do I need them? When to use them? The answer is simple: use them all the time, unless you have a very good reason not to (for instance, don’t use atomic transactions for “long running activities” between businesses). The default should always be yes. You are…

5

SQL Server 2005 with COM+/DTC is first in a new TPC-C result

The new results posted by Dell running SQL Server 2005 with COM+/DTC tops TPC-C by Price/Performance with .99 US$ price/tpmC: http://www.tpc.org/tpcc/results/tpcc_price_perf_results.asp I can’t wait to see some results with SQL Server 2005 combined with System.Transactions and our new “promotable transactions” (http://blogs.msdn.com/florinlazar/archive/2005/05/12/416805.aspx).

0

Fast transactions with System.Transactions and Microsoft SQL Server 2000

The simplest way to use transactions today with Microsoft SQL Server 2000, using .Net Framework 2.0, is as follows:        static void Main(string[] args)        {            using (TransactionScope ts = new TransactionScope())            {                SqlConnection sqlConnection = new SqlConnection(“connectionString”);                sqlConnection.Open();                SqlCommand sqlCommand = new SqlCommand(“INSERT INTO …”, sqlConnection);                sqlCommand.ExecuteNonQuery();                sqlConnection.Close();                 ts.Complete();            }        } If you really…

19

MSDN Developer Guide for System.Transactions

The Visual Studio 2005 developer guide for System.Transactions is now available at http://msdn2.microsoft.com/en-us/library/w97s6fw4(en-US,VS.80).aspx under MSDN Library\Visual Studio 2005\Product Documentation\Visual Studio\.Net Framework Programming in Visual Studio\Accessing Data\Transaction Processing.   It has three sections: Fundamentals, Writing a Transactional Application and Implementing a Resource Manager.   The System.Transactions namespace is defined at http://msdn2.microsoft.com/en-us/library/a90c30fy

0

How to run Windows Explorer as a different user (so I can do admin work)

As you probably know from my old posts, I log into my Windows computers with a normal user account (I’m not an Administrator and I’m not a Power User). I recently came across a nice switch for Windows Explorer: “/separate”. It allows me to run Windows Explorer in a separate process using different credentials, in…

4

DTCPing: Troubleshooting MSDTC Connectivity Issues

In today’s world, security hardening is causing many headaches to software developers and admins. Especially when you have an application that needs to go beyond the boundaries of the local machine. MSDTC is a distributed app by definition and thus, getting transacted app that uses MSDTC to work in your network is not as easy…

2

Transactions Sessions at PDC 2005

If you are at PDC this year, don’t forget to attend the sessions related to transactions. An easy way to find these sessions is to go to http://commnet1.microsoftpdc.com/content/sessions.aspx and search by Keyword=”transaction”.   I especially recommend the session called “FUN320 – Windows Vista & “Longhorn” Server: Improving Reliability Using System.Transactions and the Transactional NTFS and…

1

WS Specs for Transactions Updated

The WS specifications related to Transactions (WS-Coordination, WS-AtomicTransaction and WS-BusinessActivity) have just been updated. They are available at http://msdn.microsoft.com/webservices/webservices/understanding/specs/default.aspx?pull=/library/en-us/dnglobspec/html/wsatspecindex.asp.

0

Indigo Transaction Samples

Some transaction related sample code using Indigo is shown at http://winfx.msdn.microsoft.com/library/en-us/indigo_samples/html/1a9842a3-e84d-427c-b6ac-6999cbbc2612.asp Assuming that you already have the latest released WinFX build installed ( http://www.microsoft.com/downloads/details.aspx?FamilyId=CE888B4C-CCBD-452F-9D90-F4B7190CCA24&displaylang=en ), you should also install the MSDTC hotfix from http://www.microsoft.com/downloads/details.aspx?familyid=32187993-4736-4A06-97C7-1282B67E3137&displaylang=en so that you can use the new WS-AtomicTransaction protocol. Andy shows the necessary steps to install it at http://blogs.msdn.com/distilled/archive/2005/06/23/431821.aspx

3