{"id":1624,"date":"2012-11-02T19:24:58","date_gmt":"2012-11-02T10:24:58","guid":{"rendered":"http:\/\/www23.atpages.jp\/~inoni\/?p=1624"},"modified":"2017-10-20T17:34:40","modified_gmt":"2017-10-20T08:34:40","slug":"sqlserver%e8%a6%9a%e6%9b%b8%ef%bc%9apostgresql%e3%82%92%e5%8f%82%e7%85%a7%e3%81%99%e3%82%8bwinxpsqlserver2008","status":"publish","type":"post","link":"http:\/\/anada.cloudfree.jp\/?p=1624","title":{"rendered":"SQLServer\u899a\u66f8\uff1aPostgreSQL\u3092\u53c2\u7167\u3059\u308b(WinXP\/SQLServer2008)"},"content":{"rendered":"<p>\u30cd\u30c3\u30c8\u3067\u3044\u308d\u3044\u308d\u8abf\u3079\u3066\u3088\u3046\u3084\u304f\u53c2\u7167\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u306e\u3067\u3001\u30e1\u30e2\u3002<br \/>\nPostgreSQL\u306eODBC Driver\u306f\u3059\u3067\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f\u3068\u3057\u3066\u66f8\u3044\u3066\u308b\u3088\u3002<\/p>\n<p>\u307e\u305a\u306f\u3001\u30b3\u30f3\u30d1\u30cd\u2192\u7ba1\u7406\u30c4\u30fc\u30eb\u2192Microsoft ODBC \u30a2\u30c9\u30df\u30cb\u30b9\u30c8\u30ec\u30fc\u30bf\u3067\u3001<strong>\u30b7\u30b9\u30c6\u30e0DNS<\/strong>\u306bODBC\u306e\u63a5\u7d9a\u8a2d\u5b9a\u3092\u8ffd\u52a0\u3059\u308b\u3002<br \/>\n\uff08\u30e6\u30fc\u30b6\u30fcDNS\u3058\u3083\u306a\u3044\u3068\u3053\u308d\u304c\u30dd\u30a4\u30f3\u30c8\uff09<\/p>\n<p>\u6b21\u306b\u3001SQLServer\u3092\u958b\u3044\u3066\u3001\u65b0\u3057\u3044\u30ea\u30f3\u30af\u30b5\u30fc\u30d0\u30fc\u3092\u4f5c\u6210\u3059\u308b\u3002<br \/>\n\u300c\u5168\u822c\u300d\u30da\u30fc\u30b8\u3067\u4ee5\u4e0b\u3092\u8a2d\u5b9a\u3002<br \/>\n\u3000\u30b5\u30fc\u30d0\u306e\u7a2e\u985e\u306f\u305d\u306e\u4ed6\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3002<br \/>\n\u3000\u30d7\u30ed\u30d0\u30a4\u30c0\u306f <strong>Microsoft OLE DB Provider ODBC Drivers<\/strong>\u3002<br \/>\n\u3000\u88fd\u54c1\u540d\u306f<strong>PostgreSQL<\/strong>\u3002<br \/>\n\u3000\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u306f\u3001\u6700\u521d\u306b\u4f5c\u6210\u3057\u305f<strong>ODBC\u63a5\u7d9a\u8a2d\u5b9a\u306e\u540d\u79f0<\/strong>\u3002<\/p>\n<p>\u300c\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u300d\u30da\u30fc\u30b8\u3067\u4ee5\u4e0b\u3092\u8a2d\u5b9a\u3002<br \/>\n\u3000<strong>\u3053\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3092\u4f7f\u7528\u3059\u308b<\/strong>\u3092\u9078\u629e\u3057\u3066\u3001<br \/>\n\u3000\u30ea\u30e2\u30fc\u30c8\u30ed\u30b0\u30a4\u30f3\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u306b<strong>PostgreSQL\u306eDB\u306e\u30e6\u30fc\u30b6\u30fc\u540d\u3068\u30d1\u30b9\u30ef\u30fc\u30c9<\/strong>\u3092\u5165\u529b\u3002<\/p>\n<p>\u3053\u308c\u3067\u3001OK\u30dc\u30bf\u30f3\u3092\u62bc\u305b\u3070\u3001\u30ea\u30f3\u30af\u30b5\u30fc\u30d0\u304c\u51fa\u6765\u4e0a\u304c\u308a\u3002<\/p>\n<p>\u3042\u3068\u306e\u6ce8\u610f\u70b9\u306f\u3001Select\u6587\u306f\u3001OPENQUERY\u3092\u4f7f\u3046\u3068\u3044\u3046\u3068\u3053\u308d\u3002<\/p>\n<p><strong>SELECT * FROM OPENQUERY([\u30ea\u30f3\u30af\u30b5\u30fc\u30d0\u540d],&#8217;SELECT * FROM [\u30b9\u30ad\u30fc\u30de\u540d(public)].[\u30c6\u30fc\u30d6\u30eb\u540d]&#8217;)<\/strong><\/p>\n<p>\u3068\u3044\u3063\u305f\u611f\u3058\u3002<\/p>\n<p>\u4e38\u4e00\u65e5\u304b\u304b\u3063\u3066\u3001Oracle\u3068PostgreSQL\u4e21\u65b9\u306eDB\u3092\u53c2\u7167\u3059\u308b\u3084\u308a\u65b9\u304c\u308f\u304b\u3063\u305f\u3002<br \/>\n\u3084\u3063\u3071\u308a\u3001\u52c9\u5f37\u304c\u8db3\u308a\u306a\u3044\u306a\u3002<\/p>\n<p>[\u8ffd\u8a18\uff1a64bit\u7248OS\u5229\u7528\u6642(WindowsServer\u3068\u304b)]<br \/>\n64bit\u7248OS\u306e\u5834\u5408\u306f\u3001PostgreSQL\u306eODBC Driver(64bit\u7248)\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308c\u3070\u3001\u3042\u3068\u306f\u540c\u69d8\u306b\u51e6\u7406\u304c\u3067\u304d\u308b\u3088\u3046\u3067\u3042\u308b\u3002<\/p>\n<p>\u4ed6\u306e\u30b5\u30a4\u30c8\u3067\u3082\u3053\u306e\u624b\u306e\u8a18\u4e8b\u306f\u591a\u3044\u3093\u3060\u3051\u3069\u3001\u8a2d\u5b9a\u306e\u30c6\u30ad\u30b9\u30c8\u30dc\u30c3\u30af\u30b9\u306b\u4f55\u3092\u5165\u308c\u3066\u3044\u3044\u304b\u307e\u3067\u66f8\u3044\u3066\u306a\u3044\u306e\u3060\u3002<br \/>\n\u3053\u3053\u307e\u3067\u66f8\u3044\u3066\u3082\u3089\u3048\u306a\u3044\u3068\u3001\u5fdc\u7528\u529b\u304c\u306a\u3044\u306e\u3067\u308f\u304b\u3089\u3093\u306e\u3088\u3001\u79c1\u306f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30cd\u30c3\u30c8\u3067\u3044\u308d\u3044\u308d\u8abf\u3079\u3066\u3088\u3046\u3084\u304f\u53c2\u7167\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u306e\u3067\u3001\u30e1\u30e2\u3002 PostgreSQL\u306eODBC Driver\u306f\u3059\u3067\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f\u3068\u3057\u3066\u66f8\u3044\u3066\u308b\u3088\u3002 \u307e\u305a\u306f\u3001\u30b3\u30f3\u30d1\u30cd\u2192\u7ba1\u7406\u30c4\u30fc\u30eb\u2192Microsoft ODBC \u30a2\u30c9\u30df [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[180],"class_list":["post-1624","post","type-post","status-publish","format-standard","hentry","category-sql","tag-sqlserver"],"_links":{"self":[{"href":"http:\/\/anada.cloudfree.jp\/index.php?rest_route=\/wp\/v2\/posts\/1624","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/anada.cloudfree.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/anada.cloudfree.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/anada.cloudfree.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/anada.cloudfree.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1624"}],"version-history":[{"count":1,"href":"http:\/\/anada.cloudfree.jp\/index.php?rest_route=\/wp\/v2\/posts\/1624\/revisions"}],"predecessor-version":[{"id":2728,"href":"http:\/\/anada.cloudfree.jp\/index.php?rest_route=\/wp\/v2\/posts\/1624\/revisions\/2728"}],"wp:attachment":[{"href":"http:\/\/anada.cloudfree.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1624"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/anada.cloudfree.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1624"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/anada.cloudfree.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1624"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}