{"id":6125,"date":"2024-03-29T16:22:13","date_gmt":"2024-03-29T07:22:13","guid":{"rendered":"https:\/\/okamurax.com\/?p=6125"},"modified":"2024-04-07T00:19:23","modified_gmt":"2024-04-06T15:19:23","slug":"azure-sql-database-%e4%bd%9c%e6%88%90","status":"publish","type":"post","link":"https:\/\/appbay.org\/?p=6125","title":{"rendered":"Azure SQL Database \u4f5c\u6210"},"content":{"rendered":"<p>(\u307b\u307c\u7ba1\u7406\u753b\u9762\u306b\u5165\u3089\u306a\u3044\u306e\u3067\uff64\u78ba\u304b\u3067\u306f\u306a\u3044\u3051\u3069)\u4ee5\u524d\u304b\u3089Microsoft Authenticator\u3092\u4f7f\u3063\u3066\uff64\u3068\u3044\u3046\u8868\u793a\u304c\u3042\u3063\u305f\u3088\u3046\u306a\u6c17\u304c\u3059\u308b\u304c\uff64\u9762\u5012\u3067\u653e\u3063\u3066\u304a\u3044\u305f\u3089Microsoft Authenticator\u3092\u4f7f\u308f\u306a\u3044\u3068\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3063\u305f\uff61<\/p>\n<p>&gt;\u30b9\u30de\u30db\u306bMicrosoft Authenticator\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff61<br \/>\n&gt;\u8077\u5834\u307e\u305f\u306f\u5b66\u6821\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u8ffd\u52a0\u3092\u9078\u629e\uff61<br \/>\n&gt;\u5fc5\u8981\u306a\u60c5\u5831\u3092\u5165\u529b\uff61<br \/>\n&gt;\u30a2\u30d7\u30ea\u306e\u6700\u521d\u306e\u753b\u9762\uff64\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u305f\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u30af\u30ea\u30c3\u30af\uff61<br \/>\n&gt;2\u6bb5\u968e\u8a8d\u8a3c\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3092\u30af\u30ea\u30c3\u30af\uff61<br \/>\n&gt;\u8868\u793a\u3055\u308c\u305fQR\u30b3\u30fc\u30c9\u3092\u30b9\u30de\u30db\u3067\u30b9\u30ad\u30e3\u30f3\uff61<\/p>\n<p>\u25cfAzure SQL Database \u4f5c\u6210<\/p>\n<p>https:\/\/azure.microsoft.com\/ja-jp\/products\/azure-sql\/database<br \/>\n&gt;SQL Database\u7121\u6599\u3067\u8a66\u3059\uff61<br \/>\n&gt;\u7121\u6599\u3067\u8a66\u3059\uff61<br \/>\n&gt;\u9867\u5ba2\u5951\u7d04\u306b\u540c\u610f\u3057\u307e\u3059\u306e\u307f\u30c1\u30a7\u30c3\u30af\uff61\u3042\u3068\u306f\u5916\u3057\u3066\u6b21\u3078\uff61<br \/>\n&gt;\u96fb\u8a71\uff64\u30ab\u30fc\u30c9\u306b\u3088\u308b\u672c\u4eba\u78ba\u8a8d\uff61<br \/>\nAzurePortal\u304c\u958b\u304f<br \/>\nhttps:\/\/portal.azure.com\/#home<\/p>\n<p>\u25cfSQL \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u4f5c\u6210<\/p>\n<p>\u30b5\u30d6\u30b9\u30af\u30ea\u30d7\u30b7\u30e7\u30f3\uff1a\u5909\u66f4\u306a\u3057<br \/>\n\u30ea\u30bd\u30fc\u30b9\u30b0\u30eb\u30fc\u30d7(\u65b0\u898f\u4f5c\u6210)\uff1a\u9069\u5f53\u306a\u540d\u524d<br \/>\n\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u540d\uff1a\u9069\u5f53\u306a\u540d\u524d<br \/>\n\u30b5\u30fc\u30d0\u30fc(\u65b0\u898f\u4f5c\u6210)\uff1a\u9069\u5f53\u306a\u540d\u524d<br \/>\n\u5834\u6240\uff1a(US)East US<br \/>\n\u8a8d\u8a3c\u65b9\u6cd5\uff1aSQL \u8a8d\u8a3c\u3092\u4f7f\u7528\u3059\u308b<br \/>\n\u203b\u30b5\u30fc\u30d0\u30fc\u7ba1\u7406\u8005\uff64\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u4f5c\u6210\u3059\u308b\uff61<br \/>\n\u30ef\u30fc\u30af\u30ed\u30fc\u30c9\u74b0\u5883\uff1a\u958b\u767a<br \/>\n\u30b3\u30f3\u30d4\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u3068\u30b9\u30c8\u30ec\u30fc\u30b8(\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u69cb\u6210)\uff1a\u5909\u66f4\u306a\u3057<br \/>\n\u30d0\u30c3\u30af\u30a2\u30c3\u30d7 \u30b9\u30c8\u30ec\u30fc\u30b8\u306e\u5197\u9577\u6027\uff1a\u30ed\u30fc\u30ab\u30eb\u5197\u9577\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u30b9\u30c8\u30ec\u30fc\u30b8<br \/>\n&gt;\u4f5c\u6210<\/p>\n<p>\u203b\u5b89\u4fa1\u306b\u3057\u305f\u3044\u306e\u3067\u5f8c\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5909\u66f4<br \/>\n\u30db\u30fc\u30e0&gt;SQL\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9&gt;\u30b3\u30f3\u30d4\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u3068\u30b9\u30c8\u30ec\u30fc\u30b8<br \/>\nDTU\u30d9\u30fc\u30b9\u306eBasic\u306b\u5909\u66f4\uff61<\/p>\n<p>\u25cfIP\u30a2\u30c9\u30ec\u30b9\u3092\u6307\u5b9a\u3057\u3066\u63a5\u7d9a\u3092\u8a31\u53ef<\/p>\n<p>Azure\u30dd\u30fc\u30bf\u30eb\u306e\u30e1\u30a4\u30f3\u753b\u9762<br \/>\n\u30cd\u30c3\u30c8\u30ef\u30fc\u30af&gt;\u9078\u629e\u3057\u305f\u30cd\u30c3\u30c8\u30ef\u30fc\u30af<br \/>\n+\u30af\u30e9\u30a4\u30a2\u30f3\u30c8IP\u30a2\u30c9\u30ec\u30b9(\u203b\u73fe\u5728\u306e\u81ea\u5206\u306eIP\u30a2\u30c9\u30ec\u30b9\u304c\u8868\u793a)<br \/>\n\u3092\u8ffd\u52a0\u3057\uff64\u4fdd\u5b58\uff61<\/p>\n<p>\u25cfSSMS\u304b\u3089\u63a5\u7d9a<\/p>\n<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30a8\u30f3\u30b8\u30f3<br \/>\n\u30b5\u30fc\u30d0\u30fc\u540d\uff1a\u81ea\u5206\u3067\u6c7a\u3081\u305f\u30b5\u30fc\u30d0\u30fc\u540d.database.windows.net,1433<br \/>\n\u8a8d\u8a3c\uff1aSQL Server\u8a8d\u8a3c<br \/>\nID\uff1a\u4f5c\u6210\u3057\u305fID<br \/>\n\u30d1\u30b9\u30ef\u30fc\u30c9\uff1a\u4f5c\u6210\u3057\u305f\u30d1\u30b9\u30ef\u30fc\u30c9<\/p>\n<p>\u25cfAccess\u304b\u3089\u63a5\u7d9a(\u30ea\u30f3\u30af\u30c6\u30fc\u30d6\u30eb)<\/p>\n<p>\u5916\u90e8\u30c7\u30fc\u30bf&gt;\u30ea\u30f3\u30af\u30c6\u30fc\u30d6\u30eb\u30de\u30cd\u30fc\u30b8\u30e3&gt;\u8ffd\u52a0<br \/>\n\u304b\u3089\u60c5\u5831\u3092\u5165\u529b\uff61<br \/>\n\u30aa\u30d7\u30b7\u30e7\u30f3\u304b\u3089DB\u3092\u9078\u629e\u3059\u308b\uff61<\/p>\n<p>\u25cfExcel\u304b\u3089\u63a5\u7d9a<\/p>\n<pre class=\"lang:vb decode:true\">Sub test()\r\n\r\nSet cn = CreateObject(\"adodb.connection\")\r\nSet rn = CreateObject(\"adodb.recordset\")\r\n\r\n' OLEDB\r\n'cn.Open \"Provider=SQLOLEDB;Data Source=\u30b5\u30fc\u30d0\u30fc\u540d;User Id=xxx;Password=xxx;Initial Catalog=DB\u540d\"\r\n\r\n' ODBC\r\n'cn.Open \"Driver={SQL Server};Server=\u30b5\u30fc\u30d0\u30fc\u540d;Database=DB\u540d;Uid=xxx;Pwd=xxx\"\r\n\r\nrn.Open \"select * from tbl\", cn\r\n\r\nActiveSheet.Cells(1, 1).CopyFromRecordset rn\r\n\r\nIf rn.State = 1 Then rn.Close\r\nSet rn = Nothing\r\n\r\nIf cn.State = 1 Then cn.Close\r\nSet cn = Nothing\r\n\r\nEnd Sub<\/pre>\n<p>\u25cfODBC\/OLDDB<\/p>\n<p>\uff65ODBC\u306e\u78ba\u8a8d\u65b9\u6cd5<br \/>\n\u30b9\u30bf\u30fc\u30c8\u30e1\u30cb\u30e5\u30fc\u691c\u7d22&gt;odbc<\/p>\n<p>\uff65OLEDB\u306e\u78ba\u8a8d\u65b9\u6cd5<br \/>\n.udl\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3066\u958b\u304f\uff61<br \/>\n(32bit\u306e\u5834\u5408\u306e\u5834\u5408\uff64C:\\Windows\\SysWOW64\\cmd.exe\u7d4c\u7531\u3067udl\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304f)<\/p>\n<p>ODBC\uff1a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5074\u306e\u30e9\u30a4\u30d6\u30e9\u30ea+\u63a5\u7d9a\u306e\u30c9\u30e9\u30a4\u30d0<br \/>\nOLEDB\uff1a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5074\u306e\u30e9\u30a4\u30d6\u30e9\u30ea+\u63a5\u7d9a\u306e\u30d7\u30ed\u30d0\u30a4\u30c0<br \/>\n\u3068\u3044\u3046\u7528\u8a9e\u306b\u306a\u308b\uff61\u30e9\u30a4\u30d6\u30e9\u30ea\u306f\u3059\u3067\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u3066\uff64\u30c9\u30e9\u30a4\u30d0\uff65\u30d7\u30ed\u30d0\u30a4\u30c0\u304c\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u3054\u3068\u306b\u5fc5\u8981\uff61<br \/>\n\u30d7\u30ed\u30d0\u30a4\u30c0\u306fCOM\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u5b9f\u88c5\u3057\u305f\uff61\u5b9f\u4f53\u306fdll(\u30d7\u30ed\u30b0\u30e9\u30e0)\uff61<br \/>\nADO\u306fODBC\uff64OLEDB\u3092\u4f7f\u3046\u30e9\u30c3\u30d1\u30fc\u3068\u8003\u3048\u308b\uff61<br \/>\nOLEDB\u306e\u30d7\u30ed\u30d0\u30a4\u30c0\u5185\u3067\uff64ODBC\u3092\u4f7f\u3046\u3053\u3068\u3082\u3042\u308b\uff61<\/p>\n","protected":false},"excerpt":{"rendered":"<p>(\u307b\u307c\u7ba1\u7406\u753b\u9762\u306b\u5165\u3089\u306a\u3044\u306e\u3067\uff64\u78ba\u304b\u3067\u306f\u306a\u3044\u3051\u3069)\u4ee5\u524d\u304b\u3089Microsoft Authenticator\u3092\u4f7f\u3063\u3066\uff64\u3068\u3044\u3046\u8868\u793a\u304c\u3042\u3063\u305f\u3088\u3046\u306a\u6c17\u304c\u3059\u308b\u304c\uff64\u9762\u5012\u3067\u653e\u3063\u3066\u304a\u3044\u305f\u3089Microsoft Authenticator\u3092\u4f7f\u308f &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/appbay.org\/?p=6125\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;Azure SQL Database \u4f5c\u6210&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6125","post","type-post","status-publish","format-standard","hentry","category-1"],"_links":{"self":[{"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/posts\/6125","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6125"}],"version-history":[{"count":14,"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/posts\/6125\/revisions"}],"predecessor-version":[{"id":6146,"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/posts\/6125\/revisions\/6146"}],"wp:attachment":[{"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6125"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6125"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6125"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}