{"id":8752,"date":"2023-09-01T22:10:00","date_gmt":"2023-09-01T13:10:00","guid":{"rendered":"https:\/\/www.xenos.jp\/~zen\/blog2\/?p=8752"},"modified":"2023-08-31T10:11:17","modified_gmt":"2023-08-31T01:11:17","slug":"post-8752","status":"publish","type":"post","link":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/2023\/09\/01\/post-8752\/","title":{"rendered":"SQL Server \u3067\u30b9\u30c8\u30a2\u30c9\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u306e\u4e00\u89a7\u3092\u8868\u793a\u3059\u308b"},"content":{"rendered":"\n<p>SQL Server\u3067\u30b9\u30c8\u30a2\u30c9\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u306e\u4e00\u89a7\u3092\u8868\u793a\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u300cINFORMATION_SCHEMA\u300d\u306e\u300cROUTINES\u300d\u30d3\u30e5\u30fc\u3092\u53c2\u7167\u3059\u308b\u3002&#8217;ROUTINE_TYPE&#8217;\u3067&#8217;PROCEDURE&#8217; \u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u306e\u307f\u306b\u7d5e\u308a\u8fbc\u3081\u308b\u3002\u7d5e\u308a\u8fbc\u307f\u3092\u884c\u308f\u306a\u3044\u5834\u5408\u306f\u3001FUNCTION \u306a\u3069\u3082\u8868\u793a\u3055\u308c\u308b\u3002<\/p>\n\n\n\n<p>\u25a0\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u306e\u307f\u3067\u7d5e\u308a\u8fbc\u307f<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT\n    *\nFROM\n    INFORMATION_SCHEMA.ROUTINES\nWHERE\n    ROUTINE_TYPE = 'PROCEDURE'\nORDER BY\n    SPECIFIC_CATALOG, SPECIFIC_SCHEMA, SPECIFIC_NAME<\/code><\/pre>\n\n\n\n<p>\u25a0\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u3060\u3051\u3067\u306a\u304f\u3001\u30d5\u30a1\u30f3\u30af\u30b7\u30e7\u30f3\u3082\u8868\u793a\u3059\u308b<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT\n    *\nFROM\n    INFORMATION_SCHEMA.ROUTINES\nORDER BY\n    SPECIFIC_CATALOG, SPECIFIC_SCHEMA, SPECIFIC_NAME<\/code><\/pre>\n\n\n\n<p>\u25a0\u5fc5\u8981\u306a\u3082\u306e\u3060\u3051\u8868\u793a\u3059\u308b<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT\n    SPECIFIC_CATALOG, SPECIFIC_SCHEMA, SPECIFIC_NAME, ROUTINE_CATALOG, ROUTINE_SCHEMA, ROUTINE_NAME, ROUTINE_TYPE\nFROM\n    INFORMATION_SCHEMA.ROUTINES\nORDER BY\n    SPECIFIC_CATALOG, SPECIFIC_SCHEMA, SPECIFIC_NAME<\/code><\/pre>\n\n\n\n<p>\u53c2\u8003\uff1a<\/p>\n\n\n\n<p>INFORMATION_SCHEMA.ROUTINES\u3000\u306e\u8aac\u660e<\/p>\n\n\n\n<p>\u73fe\u5728\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u73fe\u5728\u306e\u30e6\u30fc\u30b6\u30fc\u304c\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u30b9\u30c8\u30a2\u30c9 \u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u3068\u95a2\u6570\u3054\u3068\u306b\u30011 \u884c\u306e\u30c7\u30fc\u30bf\u3092\u8fd4\u3057\u307e\u3059\u3002 \u623b\u308a\u5024\u3092\u8a18\u8ff0\u3059\u308b\u5217\u306f\u3001\u95a2\u6570\u306b\u306e\u307f\u9069\u7528\u3055\u308c\u307e\u3059\u3002 \u30b9\u30c8\u30a2\u30c9 \u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u306e\u5834\u5408\u3001\u3053\u308c\u3089\u306e\u5217\u306f NULL \u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/learn.microsoft.com\/ja-jp\/sql\/relational-databases\/system-information-schema-views\/routines-transact-sql?view=sql-server-ver16\">https:\/\/learn.microsoft.com\/ja-jp\/sql\/relational-databases\/system-information-schema-views\/routines-transact-sql?view=sql-server-ver16<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>SQL Server\u3067\u30b9\u30c8\u30a2\u30c9\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u306e\u4e00\u89a7\u3092\u8868\u793a\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u300cINFORMATION_SCHEMA\u300d\u306e\u300cROUTINES\u300d\u30d3\u30e5\u30fc\u3092\u53c2\u7167\u3059\u308b\u3002&#8217;ROUTINE_TYPE&#8217;\u3067&#8217;PR [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,7],"tags":[196,255],"class_list":["post-8752","post","type-post","status-publish","format-standard","hentry","category-tech","category-tech-memo","tag-sql-server-2019","tag-sql-server-2022"],"_links":{"self":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts\/8752","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/comments?post=8752"}],"version-history":[{"count":1,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts\/8752\/revisions"}],"predecessor-version":[{"id":8753,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts\/8752\/revisions\/8753"}],"wp:attachment":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/media?parent=8752"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/categories?post=8752"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/tags?post=8752"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}