<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>koogucc11</author_name>
  <author_url>https://blog.hatena.ne.jp/koogucc11/</author_url>
  <blog_title>都内で働くSEの技術的なひとりごと / Technical soliloquy of System Engineer working in Tokyo</blog_title>
  <blog_url>https://ryuchan.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>過去に C# からデッドロックを例外処理でキャッチするサンプルを作成しました。 ryuchan.hatenablog.com このサンプルソースに、p_getapplock と sp_releaseapplock を適用し、デッドロックを回避します。まず、それぞれのストアドをコールするロジックを作りましょう。 public int GetAppLock(SqlConnection connection, SqlTransaction transaction) { var command = new SqlCommand(&quot;sp_getapplock&quot;, connection, transact…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fryuchan.hatenablog.com%2Fentry%2F2017%2F12%2F30%2F131059&quot; title=&quot;デッドロックについて説明してみる - その 7 ( C# から sp_getapplock と sp_releaseapplock 使ってデッドロックを回避してみる ) - - 都内で働くSEの技術的なひとりごと / Technical soliloquy of System Engineer working in Tokyo&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/k/koogucc11/20171230/20171230125822.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-12-30 13:10:59</published>
  <title>デッドロックについて説明してみる - その 7 ( C# から sp_getapplock と sp_releaseapplock 使ってデッドロックを回避してみる ) -</title>
  <type>rich</type>
  <url>https://ryuchan.hatenablog.com/entry/2017/12/30/131059</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
