{"id":1616,"date":"2011-03-19T03:10:50","date_gmt":"2011-03-19T03:10:50","guid":{"rendered":"http:\/\/enjoyasp.net\/?p=1616"},"modified":"2012-12-30T06:42:23","modified_gmt":"2012-12-30T06:42:23","slug":"ole-db%e8%ae%bf%e9%97%ae%e6%8e%a5%e5%8f%a3sqlncli%e6%97%a0%e6%b3%95%e5%90%af%e5%8a%a8%e5%88%86%e5%b8%83%e5%bc%8f%e4%ba%8b%e7%89%a9","status":"publish","type":"post","link":"https:\/\/enjoyasp.net\/index.php\/2011\/03\/19\/ole-db%e8%ae%bf%e9%97%ae%e6%8e%a5%e5%8f%a3sqlncli%e6%97%a0%e6%b3%95%e5%90%af%e5%8a%a8%e5%88%86%e5%b8%83%e5%bc%8f%e4%ba%8b%e7%89%a9\/","title":{"rendered":"OLE DB\u8bbf\u95ee\u63a5\u53e3&#8221;SQLNCLI&#8221;\u65e0\u6cd5\u542f\u52a8\u5206\u5e03\u5f0f\u4e8b\u7269"},"content":{"rendered":"<div>\n\t\u5efa\u7acb\u590d\u5236\u5206\u53d1\u7684\u65f6\u5019\u51fa\u73b0\uff1aOLE DB\u8bbf\u95ee\u63a5\u53e3&rdquo;SQLNCLI&rdquo;\u65e0\u6cd5\u542f\u52a8\u5206\u5e03\u5f0f\u4e8b\u7269<\/div>\n<div>\n\t\u539f\u56e0\uff1a\u53cc\u65b9\u5747\u8981\u542f\u52a8msdtc\u670d\u52a1\u3002<\/div>\n<div>\n\t\u89e3\u51b3\u65b9\u6cd5\uff1a\u53cc\u65b9\u7535\u8111\uff1a<\/div>\n<div>\n\t1.\u63a7\u5236\u9762\u677f-&gt;\u7ba1\u7406\u5de5\u5177-&gt;\u7ec4\u4ef6\u670d\u52a1-&gt;\u8ba1\u7b97\u673a-&gt;\u6211\u7684\u7535\u8111-&gt;\u53f3\u952e-&gt;\u5c5e\u6027<\/div>\n<div>\n\t2. \u9009\u62e9MSDTC\u9875, \u786e\u8ba4&rdquo;\u4f7f\u7528\u672c\u5730\u534f\u8c03\u5668&rdquo;<\/div>\n<div>\n\t3.\u70b9\u51fb\u4e0b\u65b9&rdquo;\u5b89\u5168\u914d\u7f6e&rdquo;\u6309\u94ae<\/div>\n<div>\n\t4. \u52fe\u9009: &ldquo;\u5141\u8bb8\u7f51\u7edc\u8bbf\u95ee&rdquo;,&rdquo;\u5141\u8bb8\u8fdc\u7a0b\u5ba2\u6237\u7aef&rdquo;,&rdquo;\u5141\u8bb8\u5165\u7ad9&rdquo;,&rdquo;\u5141\u8bb8\u51fa\u7ad9&rdquo;,&rdquo;\u4e0d\u8981\u6c42\u8fdb\u884c\u8eab\u4efd\u9a8c\u8bc1&rdquo;.<\/div>\n<div>\n\t5. \u5bf9\u4e8e\u6570\u636e\u5e93\u670d\u52a1\u5668\u7aef, \u53ef\u9009\u62e9&rdquo;\u8981\u6c42\u5bf9\u547c\u53eb\u65b9\u9a8c\u8bc1&rdquo;<\/div>\n<div>\n\t\u505c\u6b62\u5206\u5e03\u5f0f\u4e8b\u52a1\u534f\u8c03\u5668\u670d\u52a1\uff0c\u7136\u540e\u91cd\u65b0\u4e88\u4ee5\u542f\u52a8\u3002<\/div>\n<div>\n\t\u505c\u6b62\u53c2\u4e0e\u5206\u5e03\u5f0f\u4e8b\u52a1\u7684\u4efb\u4f55\u8d44\u6e90\u7ba1\u7406\u5668\u670d\u52a1\uff08\u5982 Microsoft SQL Server \u6216 Microsoft Message Queue Server\uff09\uff0c\u7136\u540e\u91cd\u65b0\u4e88\u4ee5\u542f\u52a8\u3002<\/div>\n<div>\n\t6.\u5728\u53cc\u65b9\u9632\u706b\u5899\u4e2d\u589e\u52a0MSDTC.exe\u4f8b\u5916<\/div>\n<div>\n\t\u53ef\u7528\u547d\u4ee4\u884c: netsh firewall set allowedprogram %windir%\\system32\\msdtc.exe MSDTC enable<\/div>\n<div>\n\t7.dtC\u7528\u5230remoting\u7684135\u7aef\u53e3,\u786e\u4fdd\u9632\u706b\u5899\u6ca1\u6709\u963b\u6b62<\/div>\n<div>\n\t\u82e5\u8fd8\u4e0d\u884c\uff0c\u4fee\u6539host\u6587\u4ef6\uff0c\u5c06\u5bf9\u65b9\u673a\u5668\u540d\u548cIP\u52a0\u5165\uff0c\u56e0\u4e3a\u8fdc\u7a0b\u670d\u52a1\u5668\u9700\u901a\u8fc7\u53d1\u8d77\u670d\u52a1\u5668\u7684\u673a\u5668\u540d\u67e5\u627e\u670d\u52a1\u5668\u3002<\/p>\n<p>\t\u6ce8\u610f\uff1a\u82e5\u662f\u96c6\u7fa4\uff0c\u5219\u5f00\u7fa4\u96c6DTC\u8bbe\u7f6e(\u5728\u672c\u5730DTC\u4e0b\u9762)<br \/>\n\t\u6216\u8005\u5728\u6ca1\u6709\u4e8b\u52a1\u7684\u60c5\u51b5\u4e0b\uff0c\u4e0d\u4f7f\u7528DTC<br \/>\n\tEXEC sp_serveroption @server = &#39;dpreport&#39;,@optname = &#39;remote proc transaction promotion&#39;, @optvalue = &#39;false&#39;<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u5efa\u7acb\u590d\u5236\u5206\u53d1\u7684\u65f6\u5019\u51fa\u73b0\uff1aOLE DB\u8bbf\u95ee\u63a5\u53e3&rdquo;SQLNCLI&rdquo;\u65e0\u6cd5\u542f\u52a8\u5206\u5e03\u5f0f\u4e8b\u7269 \u539f\u56e0 [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[],"class_list":["post-1616","post","type-post","status-publish","format-standard","hentry","category-13"],"blocksy_meta":[],"_links":{"self":[{"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/posts\/1616","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/comments?post=1616"}],"version-history":[{"count":0,"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/posts\/1616\/revisions"}],"wp:attachment":[{"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/media?parent=1616"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/categories?post=1616"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/tags?post=1616"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}