<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>neko3cs</author_name>
  <author_url>https://blog.hatena.ne.jp/neko3cs/</author_url>
  <blog_title>ねこさんのぶろぐ</blog_title>
  <blog_url>https://blog.neko3cs.net/</blog_url>
  <categories>
    <anon>SQL Server</anon>
    <anon>T-SQL</anon>
    <anon>SQL</anon>
  </categories>
  <description>SQL Serverに対してDDLなどを実行したいとき、テストなどで実行していたプログラム等の接続が残っているなど、うまく実行が出来ないケースがあるかと思います。 そんな時は以下のようなSQLを実行するように実行したいDDLの最初に記述しておくとよいかもしれません。 declare Disconnect cursor for select [dm_exec_sessions].[session_id] from [sys].[dm_exec_sessions] inner join [sys].[dm_exec_connections] on [dm_exec_sessions].[sessi…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.neko3cs.net%2Fentry%2Fhow-to-disconnect-sql-server-db-connection&quot; title=&quot;T-SQLで特定DBへの接続をすべて切断する - ねこさんのぶろぐ&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>2023-01-19 19:46:26</published>
  <title>T-SQLで特定DBへの接続をすべて切断する</title>
  <type>rich</type>
  <url>https://blog.neko3cs.net/entry/how-to-disconnect-sql-server-db-connection</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
