{"id":1688,"date":"2018-07-24T19:15:07","date_gmt":"2018-07-24T10:15:07","guid":{"rendered":"http:\/\/www.cotegg.com\/blog\/?p=1688"},"modified":"2018-07-24T19:54:03","modified_gmt":"2018-07-24T10:54:03","slug":"rails-tinytdserror-closed-connection","status":"publish","type":"post","link":"https:\/\/www.cotegg.com\/blog\/?p=1688","title":{"rendered":"[Rails] TinyTds::Error (closed connection)"},"content":{"rendered":"<p>\u3069\u3046\u3082\u4e2d\u7530\u3067\u3059\u3002<\/p>\n<p><a href=\"http:\/\/www.cotegg.com\/blog\/wp-content\/uploads\/2018\/07\/Collage_Fotor.jpg\"><img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/www.cotegg.com\/blog\/wp-content\/uploads\/2018\/07\/Collage_Fotor-300x233.jpg\" alt=\"\" width=\"300\" height=\"233\" class=\"alignnone size-medium wp-image-1689\" srcset=\"https:\/\/www.cotegg.com\/blog\/wp-content\/uploads\/2018\/07\/Collage_Fotor-300x233.jpg 300w, https:\/\/www.cotegg.com\/blog\/wp-content\/uploads\/2018\/07\/Collage_Fotor.jpg 360w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u305f\u3076\u3093\u3001\u3053\u306e\u8a18\u4e8b\u3067\u6551\u308f\u308c\u308b\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u65b9\u306f\u304a\u305d\u3089\u304f1\u4eba\u3044\u308c\u3070\u3088\u3044\u65b9\u304b\u3068\u3002<br \/>\n\u305d\u306e\u304f\u3089\u3044\u306e\u30aa\u30c1\u3060\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u4e16\u754c\u30671\u4eba\u6551\u3048\u308c\u3070\u3068\u3044\u3046\u6c17\u6301\u3061\u3067\u66f8\u304d\u307e\u3059\u3002<\/p>\n<h3>\u4e8b\u8c61<\/h3>\n<p>Rails\u3067SQLServer\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u308b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u304c\u3042\u3063\u3066\u3001<br \/>\nTinyTds\u3092\u4f7f\u3063\u3066ActiveRecord\u3092\u64cd\u4f5c\u3057\u3066\u307e\u3059\u3002<\/p>\n<p>\u305d\u3053\u3067\u3001\u4f55\u3092\u3084\u3063\u3066\u3082<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nTinyTds::Error (closed connection)\n<\/pre>\n<p>\u3063\u3066\u8a00\u308f\u308c\u308b\u3093\u3067\u3059\u3088\u3002<\/p>\n<p>\u30e2\u30c7\u30eb\u3092\u53c2\u7167\u3057\u305f\u77ac\u9593\u306b\u3002\u3002\u3002<\/p>\n<p>\u7d50\u69cb\u30cf\u30de\u308a\u307e\u3057\u305f\u3002<\/p>\n<h3>\u7d50\u8ad6<\/h3>\n<p>database.yml\u306eencoding\u304c\u304a\u304b\u3057\u3044\uff01<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n  adapter: sqlserver\n  encoding: utf8mb4\n  vmode: dblib\n  username: xxxx\n  password: xxxx\n  port: 1433\n  host: xxx.xxx.xxx.xxx\n  database: xxxx\n<\/pre>\n<p>\u3088\u304f\u3088\u304f\u8003\u3048\u3066\u307f\u308b\u3068\u3001\u3053\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306eDB\u306eencode\u306f<\/p>\n<h1>utf8<\/h1>\n<p>utf8mb4\u3067\u306f\u30c0\u30e1\u3060\u3063\u305f\u30fc\u3002<\/p>\n<p>\u3054\u89a7\u306b\u306a\u3063\u305f\u65b9\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u4f9d\u5b58\u306e\u304a\u8a71\u3067\u5927\u5909\u5931\u793c\u81f4\u3057\u307e\u3057\u305f\u3002<br \/>\n\u3053\u306e\u8a18\u4e8b\u3067\u6551\u308f\u308c\u307e\u3057\u305f\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u305d\u308c\u306b\u3057\u3066\u3082\u4e0d\u89aa\u5207\u306a\u30ed\u30b0\u3060\u3063\u305f\u306a\u3041\u301c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3069\u3046\u3082\u4e2d\u7530\u3067\u3059\u3002 \u305f\u3076\u3093\u3001\u3053\u306e\u8a18\u4e8b\u3067\u6551\u308f\u308c\u308b\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u65b9\u306f\u304a\u305d\u3089\u304f1\u4eba\u3044\u308c\u3070\u3088 &#8230; <\/p>\n","protected":false},"author":2,"featured_media":1689,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[7],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.13 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>[Rails] TinyTds::Error (closed connection) | \u30b3\u30fc\u30c6\u30c3\u30b0\u306e\u30d0\u30b1\u30c4<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.cotegg.com\/blog\/?p=1688\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[Rails] TinyTds::Error (closed connection) | \u30b3\u30fc\u30c6\u30c3\u30b0\u306e\u30d0\u30b1\u30c4\" \/>\n<meta property=\"og:description\" content=\"\u3069\u3046\u3082\u4e2d\u7530\u3067\u3059\u3002 \u305f\u3076\u3093\u3001\u3053\u306e\u8a18\u4e8b\u3067\u6551\u308f\u308c\u308b\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u65b9\u306f\u304a\u305d\u3089\u304f1\u4eba\u3044\u308c\u3070\u3088 ...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.cotegg.com\/blog\/?p=1688\" \/>\n<meta property=\"og:site_name\" content=\"\u30b3\u30fc\u30c6\u30c3\u30b0\u306e\u30d0\u30b1\u30c4\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/COTegg.japan\/\" \/>\n<meta property=\"article:published_time\" content=\"2018-07-24T10:15:07+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-07-24T10:54:03+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.cotegg.com\/blog\/wp-content\/uploads\/2018\/07\/Collage_Fotor.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"360\" \/>\n\t<meta property=\"og:image:height\" content=\"279\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"\u4e2d\u7530 \u6b69\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@cotegg_japan\" \/>\n<meta name=\"twitter:site\" content=\"@cotegg_japan\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u4e2d\u7530 \u6b69\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.cotegg.com\/blog\/?p=1688#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.cotegg.com\/blog\/?p=1688\"},\"author\":{\"name\":\"\u4e2d\u7530 \u6b69\",\"@id\":\"https:\/\/www.cotegg.com\/blog\/#\/schema\/person\/bee6afc3e5cc03652345976570794aef\"},\"headline\":\"[Rails] TinyTds::Error (closed connection)\",\"datePublished\":\"2018-07-24T10:15:07+00:00\",\"dateModified\":\"2018-07-24T10:54:03+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.cotegg.com\/blog\/?p=1688\"},\"wordCount\":48,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.cotegg.com\/blog\/#organization\"},\"articleSection\":[\"\u6280\u8853\"],\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.cotegg.com\/blog\/?p=1688#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.cotegg.com\/blog\/?p=1688\",\"url\":\"https:\/\/www.cotegg.com\/blog\/?p=1688\",\"name\":\"[Rails] TinyTds::Error (closed connection) | \u30b3\u30fc\u30c6\u30c3\u30b0\u306e\u30d0\u30b1\u30c4\",\"isPartOf\":{\"@id\":\"https:\/\/www.cotegg.com\/blog\/#website\"},\"datePublished\":\"2018-07-24T10:15:07+00:00\",\"dateModified\":\"2018-07-24T10:54:03+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.cotegg.com\/blog\/?p=1688#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.cotegg.com\/blog\/?p=1688\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.cotegg.com\/blog\/?p=1688#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.cotegg.com\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[Rails] TinyTds::Error (closed connection)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.cotegg.com\/blog\/#website\",\"url\":\"https:\/\/www.cotegg.com\/blog\/\",\"name\":\"COTegg\u306e\u30d0\u30b1\u30c4\",\"description\":\"- Bucket of cotegg -\",\"publisher\":{\"@id\":\"https:\/\/www.cotegg.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.cotegg.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.cotegg.com\/blog\/#organization\",\"name\":\"COTegg Inc.\",\"url\":\"https:\/\/www.cotegg.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.cotegg.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.cotegg.com\/blog\/wp-content\/uploads\/2015\/07\/logo_color1_yoko-e1436354651882.png\",\"contentUrl\":\"https:\/\/www.cotegg.com\/blog\/wp-content\/uploads\/2015\/07\/logo_color1_yoko-e1436354651882.png\",\"width\":176,\"height\":60,\"caption\":\"COTegg Inc.\"},\"image\":{\"@id\":\"https:\/\/www.cotegg.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/COTegg.japan\/\",\"https:\/\/twitter.com\/cotegg_japan\",\"https:\/\/www.instagram.com\/cotegg_japan\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.cotegg.com\/blog\/#\/schema\/person\/bee6afc3e5cc03652345976570794aef\",\"name\":\"\u4e2d\u7530 \u6b69\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.cotegg.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ce4d0b00ef87081854562ad73f762659?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ce4d0b00ef87081854562ad73f762659?s=96&d=mm&r=g\",\"caption\":\"\u4e2d\u7530 \u6b69\"},\"sameAs\":[\"http:\/\/www.cotegg.com\"],\"url\":\"https:\/\/www.cotegg.com\/blog\/?author=2\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[Rails] TinyTds::Error (closed connection) | \u30b3\u30fc\u30c6\u30c3\u30b0\u306e\u30d0\u30b1\u30c4","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.cotegg.com\/blog\/?p=1688","og_locale":"ja_JP","og_type":"article","og_title":"[Rails] TinyTds::Error (closed connection) | \u30b3\u30fc\u30c6\u30c3\u30b0\u306e\u30d0\u30b1\u30c4","og_description":"\u3069\u3046\u3082\u4e2d\u7530\u3067\u3059\u3002 \u305f\u3076\u3093\u3001\u3053\u306e\u8a18\u4e8b\u3067\u6551\u308f\u308c\u308b\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u65b9\u306f\u304a\u305d\u3089\u304f1\u4eba\u3044\u308c\u3070\u3088 ...","og_url":"https:\/\/www.cotegg.com\/blog\/?p=1688","og_site_name":"\u30b3\u30fc\u30c6\u30c3\u30b0\u306e\u30d0\u30b1\u30c4","article_publisher":"https:\/\/www.facebook.com\/COTegg.japan\/","article_published_time":"2018-07-24T10:15:07+00:00","article_modified_time":"2018-07-24T10:54:03+00:00","og_image":[{"width":360,"height":279,"url":"https:\/\/www.cotegg.com\/blog\/wp-content\/uploads\/2018\/07\/Collage_Fotor.jpg","type":"image\/jpeg"}],"author":"\u4e2d\u7530 \u6b69","twitter_card":"summary_large_image","twitter_creator":"@cotegg_japan","twitter_site":"@cotegg_japan","twitter_misc":{"\u57f7\u7b46\u8005":"\u4e2d\u7530 \u6b69"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.cotegg.com\/blog\/?p=1688#article","isPartOf":{"@id":"https:\/\/www.cotegg.com\/blog\/?p=1688"},"author":{"name":"\u4e2d\u7530 \u6b69","@id":"https:\/\/www.cotegg.com\/blog\/#\/schema\/person\/bee6afc3e5cc03652345976570794aef"},"headline":"[Rails] TinyTds::Error (closed connection)","datePublished":"2018-07-24T10:15:07+00:00","dateModified":"2018-07-24T10:54:03+00:00","mainEntityOfPage":{"@id":"https:\/\/www.cotegg.com\/blog\/?p=1688"},"wordCount":48,"commentCount":0,"publisher":{"@id":"https:\/\/www.cotegg.com\/blog\/#organization"},"articleSection":["\u6280\u8853"],"inLanguage":"ja","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.cotegg.com\/blog\/?p=1688#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.cotegg.com\/blog\/?p=1688","url":"https:\/\/www.cotegg.com\/blog\/?p=1688","name":"[Rails] TinyTds::Error (closed connection) | \u30b3\u30fc\u30c6\u30c3\u30b0\u306e\u30d0\u30b1\u30c4","isPartOf":{"@id":"https:\/\/www.cotegg.com\/blog\/#website"},"datePublished":"2018-07-24T10:15:07+00:00","dateModified":"2018-07-24T10:54:03+00:00","breadcrumb":{"@id":"https:\/\/www.cotegg.com\/blog\/?p=1688#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.cotegg.com\/blog\/?p=1688"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.cotegg.com\/blog\/?p=1688#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.cotegg.com\/blog"},{"@type":"ListItem","position":2,"name":"[Rails] TinyTds::Error (closed connection)"}]},{"@type":"WebSite","@id":"https:\/\/www.cotegg.com\/blog\/#website","url":"https:\/\/www.cotegg.com\/blog\/","name":"COTegg\u306e\u30d0\u30b1\u30c4","description":"- Bucket of cotegg -","publisher":{"@id":"https:\/\/www.cotegg.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.cotegg.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/www.cotegg.com\/blog\/#organization","name":"COTegg Inc.","url":"https:\/\/www.cotegg.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.cotegg.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.cotegg.com\/blog\/wp-content\/uploads\/2015\/07\/logo_color1_yoko-e1436354651882.png","contentUrl":"https:\/\/www.cotegg.com\/blog\/wp-content\/uploads\/2015\/07\/logo_color1_yoko-e1436354651882.png","width":176,"height":60,"caption":"COTegg Inc."},"image":{"@id":"https:\/\/www.cotegg.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/COTegg.japan\/","https:\/\/twitter.com\/cotegg_japan","https:\/\/www.instagram.com\/cotegg_japan\/"]},{"@type":"Person","@id":"https:\/\/www.cotegg.com\/blog\/#\/schema\/person\/bee6afc3e5cc03652345976570794aef","name":"\u4e2d\u7530 \u6b69","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.cotegg.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/ce4d0b00ef87081854562ad73f762659?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ce4d0b00ef87081854562ad73f762659?s=96&d=mm&r=g","caption":"\u4e2d\u7530 \u6b69"},"sameAs":["http:\/\/www.cotegg.com"],"url":"https:\/\/www.cotegg.com\/blog\/?author=2"}]}},"_links":{"self":[{"href":"https:\/\/www.cotegg.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1688"}],"collection":[{"href":"https:\/\/www.cotegg.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cotegg.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cotegg.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cotegg.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1688"}],"version-history":[{"count":4,"href":"https:\/\/www.cotegg.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1688\/revisions"}],"predecessor-version":[{"id":1693,"href":"https:\/\/www.cotegg.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1688\/revisions\/1693"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.cotegg.com\/blog\/index.php?rest_route=\/wp\/v2\/media\/1689"}],"wp:attachment":[{"href":"https:\/\/www.cotegg.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1688"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cotegg.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1688"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cotegg.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1688"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}