<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tamitamy</author_name>
  <author_url>https://blog.hatena.ne.jp/tamitamy/</author_url>
  <blog_title>プログラマの落書き帳</blog_title>
  <blog_url>https://tamitamy.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>西暦と和暦の変換についてはSQLServerでは 備わっていないということで、 ほとんどの人が自作している中、 「汎用性がほしぃ」ばっかりになんとか VBのFormat関数を使えないかと色々と探ってみては 試行錯誤してみました。 sp_OACreateを使用して VBScript(MSScriptControl.ScriptControl)を 試してみたり... 結局はExcelに備わっているTEXT関数がVB上のFormat のようなので、こやつとOLE連携してみることに。 コーディングして実行してみると、 2147024891 (0x80070005) ODSOLE Extended Pr…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftamitamy.hatenadiary.org%2Fentry%2F20050506%2F1116762946&quot; title=&quot;T-SQLでFormatが使いたいっ - プログラマの落書き帳&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2005-05-06 20:55:46</published>
  <title>T-SQLでFormatが使いたいっ</title>
  <type>rich</type>
  <url>https://tamitamy.hatenadiary.org/entry/20050506/1116762946</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
