Apple - Trailers - The Devil Wears Prada
この人どっかでみたなぁ、と思って調べました。
プリティプリンセスのミア(だっけか?)王女ですね。
・・・QuickTime のみインストールする方法は無いのでしょうか? iTunes を抱き合わせでインストールさせられてしまいました。
.NET 2.0 で登場した TransactionScope を使えば、憧れ(?)のコンポーネントサービスがあなたにも使えます。
手元のSQL Server、隣のSQL Server、遠隔地に存在するSQL Server、三つまとめて動かすことも可能でした。
(かなり、設定にてまどりましたけど・・・)
const string SQL_MINUS = "update dbo.Employee set Score = Score - 1 where EmpID = 300";
const string SQL_PLUS = "update dbo.Employee set Score = Score + 1 where EmpID = 300";
const string CONSTR1 = @"server=(local)\sqlexpress; database=test; User=my_login; password=xxxxxxxxx; ";
const string CONSTR2 = @"server=(local)\dev; database=test; User=your_login; password=yyyyyyyyy; ";
static void Main(string[] args)
{
try
{
using (TransactionScope scope = new TransactionScope())
{
Sub(CONSTR2, SQL_PLUS);
Wait(3000);
Sub(CONSTR1, SQL_MINUS);
Wait(3000);
Console.WriteLine("about to complete()");
scope.Complete();
}
}
catch (Exception ex)
{
Console.WriteLine(ex + "");
}
}
static void Sub(string constr, string query)
{
using (SqlConnection con = new SqlConnection(constr))
{
SqlCommand cmd = new SqlCommand(query, con);
con.Open();
cmd.ExecuteNonQuery();
}
Console.WriteLine("---------------");
Console.WriteLine(Transaction.Current.TransactionInformation.LocalIdentifier);
Console.WriteLine(Transaction.Current.TransactionInformation.DistributedIdentifier);
}
static void Wait(int n)
{
Console.WriteLine(n + "ミリ秒待ちます。");
System.Threading.Thread.Sleep(n);
}
コンポーネント サービス、MTS (Microsoft Transaction Server) ということで・・・
http://books.yahoo.co.jp/book_detail/30413852

この本持ってたけど捨てました。
PC に LAN カードが無く、56K のモデムでダイヤルアップしていたころの話です。