<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tanaka733</author_name>
  <author_url>https://blog.hatena.ne.jp/tanaka733/</author_url>
  <blog_title>銀の光と碧い空</blog_title>
  <blog_url>https://tech.tanaka733.net/</blog_url>
  <categories>
    <anon>Azure</anon>
  </categories>
  <description>Azure Mobile ServicesでRDBMSを使うにあたって、たとえばユーザーIDをキーとしてクライアントの端末のIDと何かのステータスをサーバーに登録したいケースがあります。このとき、クライアント側では自分のIDと状態が登録済みかどうかわからないケースがあります（端末IDだけならクライアント側に状態持てるけどそれ以外にも更新する値があるとこのケースが生まれます）。そこで、Mobile ServicesのカスタムAPIを使ってサーバーサイドで処理をすることにしました。 サーバー側でSQLを発行して、SELECT～で登録済みかどうか確認して...ということもできますが、トランザクション…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.tanaka733.net%2Fentry%2Fazure-mobile-services-mssql-merge&quot; title=&quot;Azure Mobile Services で指定した条件でレコードが存在しなければINSERT、存在すればUPDATEを実行する (TSQLによるMERGE文の実行) - 銀の光と碧い空&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>http://cdn-ak.f.st-hatena.com/images/fotolife/t/tanaka733/20140130/20140130012933.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-01-30 01:31:16</published>
  <title>Azure Mobile Services で指定した条件でレコードが存在しなければINSERT、存在すればUPDATEを実行する (TSQLによるMERGE文の実行)</title>
  <type>rich</type>
  <url>https://tech.tanaka733.net/entry/azure-mobile-services-mssql-merge</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
