{"id":189348,"date":"2024-11-12T06:56:18","date_gmt":"2024-11-11T22:56:18","guid":{"rendered":"https:\/\/server.hk\/cnblog\/189348\/"},"modified":"2024-11-12T06:56:19","modified_gmt":"2024-11-11T22:56:19","slug":"%e5%90%8c%e6%ad%a5%e5%85%a9%e5%80%8bsqlserver%e6%95%b8%e6%93%9a%e5%ba%ab-xker-com-%e7%9a%84%e6%93%8d%e4%bd%9c","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/189348\/","title":{"rendered":"\u540c\u6b65\u5169\u500bSQLServer\u6578\u64da\u5eab XKER.COM \u7684\u64cd\u4f5c"},"content":{"rendered":"<h1 id=\"%e5%90%8c%e6%ad%a5%e5%85%a9%e5%80%8bsql-server%e6%95%b8%e6%93%9a%e5%ba%ab-xker-com-%e7%9a%84%e6%93%8d%e4%bd%9c-OVPKcDQaJy\">\u540c\u6b65\u5169\u500bSQL Server\u6578\u64da\u5eab XKER.COM \u7684\u64cd\u4f5c<\/h1>\n<p>\u5728\u7576\u4eca\u6578\u64da\u9a45\u52d5\u7684\u4e16\u754c\u4e2d\uff0c\u6578\u64da\u5eab\u7684\u540c\u6b65\u8b8a\u5f97\u8d8a\u4f86\u8d8a\u91cd\u8981\u3002\u7279\u5225\u662f\u5c0d\u65bc\u50cf XKER.COM \u9019\u6a23\u7684\u4f01\u696d\uff0c\u78ba\u4fdd\u6578\u64da\u7684\u4e00\u81f4\u6027\u548c\u53ef\u7528\u6027\u662f\u81f3\u95dc\u91cd\u8981\u7684\u3002\u672c\u6587\u5c07\u63a2\u8a0e\u5982\u4f55\u5728 SQL Server \u4e2d\u540c\u6b65\u5169\u500b\u6578\u64da\u5eab\uff0c\u4e26\u63d0\u4f9b\u5177\u9ad4\u7684\u64cd\u4f5c\u6b65\u9a5f\u548c\u793a\u4f8b\u3002<\/p>\n<h2 id=\"%e7%82%ba%e4%bb%80%e9%ba%bc%e9%9c%80%e8%a6%81%e6%95%b8%e6%93%9a%e5%ba%ab%e5%90%8c%e6%ad%a5%ef%bc%9f-OVPKcDQaJy\">\u70ba\u4ec0\u9ebc\u9700\u8981\u6578\u64da\u5eab\u540c\u6b65\uff1f<\/h2>\n<p>\u6578\u64da\u5eab\u540c\u6b65\u7684\u4e3b\u8981\u76ee\u7684\u662f\u78ba\u4fdd\u5728\u4e0d\u540c\u4f4d\u7f6e\u6216\u4e0d\u540c\u7cfb\u7d71\u4e2d\u7684\u6578\u64da\u4fdd\u6301\u4e00\u81f4\u3002\u9019\u5c0d\u65bc\u591a\u5730\u9ede\u696d\u52d9\u3001\u6578\u64da\u5099\u4efd\u548c\u707d\u96e3\u6062\u5fa9\u7b49\u5834\u666f\u5c24\u70ba\u91cd\u8981\u3002\u901a\u904e\u540c\u6b65\uff0c\u4f01\u696d\u53ef\u4ee5\u78ba\u4fdd\u6240\u6709\u7528\u6236\u90fd\u80fd\u8a2a\u554f\u5230\u6700\u65b0\u7684\u6578\u64da\uff0c\u5f9e\u800c\u63d0\u9ad8\u5de5\u4f5c\u6548\u7387\u548c\u6c7a\u7b56\u7684\u6e96\u78ba\u6027\u3002<\/p>\n<h2 id=\"sql-server-%e6%95%b8%e6%93%9a%e5%ba%ab%e5%90%8c%e6%ad%a5%e7%9a%84%e6%96%b9%e5%bc%8f-OVPKcDQaJy\">SQL Server \u6578\u64da\u5eab\u540c\u6b65\u7684\u65b9\u5f0f<\/h2>\n<p>\u5728 SQL Server \u4e2d\uff0c\u6709\u5e7e\u7a2e\u5e38\u898b\u7684\u6578\u64da\u5eab\u540c\u6b65\u65b9\u6cd5\uff0c\u5305\u62ec\uff1a<\/p>\n<ul>\n<li><strong>\u5099\u4efd\u548c\u9084\u539f\uff1a<\/strong>\u9019\u662f\u4e00\u7a2e\u7c21\u55ae\u7684\u540c\u6b65\u65b9\u6cd5\uff0c\u901a\u904e\u5b9a\u671f\u5099\u4efd\u6578\u64da\u5eab\u4e26\u5c07\u5176\u9084\u539f\u5230\u53e6\u4e00\u500b\u6578\u64da\u5eab\u4f86\u5be6\u73fe\u3002<\/li>\n<li><strong>SQL Server \u8907\u88fd\uff1a<\/strong>\u9019\u662f\u4e00\u7a2e\u66f4\u9ad8\u7d1a\u7684\u540c\u6b65\u6280\u8853\uff0c\u5141\u8a31\u5728\u591a\u500b\u6578\u64da\u5eab\u4e4b\u9593\u81ea\u52d5\u8907\u88fd\u6578\u64da\u3002<\/li>\n<li><strong>SQL Server \u6578\u64da\u540c\u6b65\u670d\u52d9\uff1a<\/strong>\u9019\u662f\u4e00\u7a2e\u5c08\u9580\u7684\u670d\u52d9\uff0c\u65e8\u5728\u7c21\u5316\u6578\u64da\u540c\u6b65\u904e\u7a0b\u3002<\/li>\n<\/ul>\n<h2 id=\"%e4%bd%bf%e7%94%a8-sql-server-%e8%a4%87%e8%a3%bd%e9%80%b2%e8%a1%8c%e6%95%b8%e6%93%9a%e5%ba%ab%e5%90%8c%e6%ad%a5-OVPKcDQaJy\">\u4f7f\u7528 SQL Server \u8907\u88fd\u9032\u884c\u6578\u64da\u5eab\u540c\u6b65<\/h2>\n<p>\u4ee5\u4e0b\u662f\u4f7f\u7528 SQL Server \u8907\u88fd\u9032\u884c\u6578\u64da\u5eab\u540c\u6b65\u7684\u57fa\u672c\u6b65\u9a5f\uff1a<\/p>\n<h3 id=\"%e6%ad%a5%e9%a9%9f-1%ef%bc%9a%e9%85%8d%e7%bd%ae%e7%99%bc%e8%a1%8c%e8%80%85-OVPKcDQaJy\">\u6b65\u9a5f 1\uff1a\u914d\u7f6e\u767c\u884c\u8005<\/h3>\n<pre><code>\n-- \u5728\u767c\u884c\u8005\u4e0a\u555f\u7528\u8907\u88fd\nEXEC sp_replicationdboption @dbname = 'YourDatabase', @optname = 'publish', @value = 'true';\n<\/code><\/pre>\n<h3 id=\"%e6%ad%a5%e9%a9%9f-2%ef%bc%9a%e5%89%b5%e5%bb%ba%e7%99%bc%e8%a1%8c-OVPKcDQaJy\">\u6b65\u9a5f 2\uff1a\u5275\u5efa\u767c\u884c<\/h3>\n<pre><code>\n-- \u5275\u5efa\u767c\u884c\nEXEC sp_addpublication \n    @publication = 'YourPublication', \n    @status = 'active', \n    @allow_push = 'true', \n    @allow_pull = 'true', \n    @allow_anonymous = 'false', \n    @database = 'YourDatabase';\n<\/code><\/pre>\n<h3 id=\"%e6%ad%a5%e9%a9%9f-3%ef%bc%9a%e9%85%8d%e7%bd%ae%e8%a8%82%e9%96%b1%e8%80%85-OVPKcDQaJy\">\u6b65\u9a5f 3\uff1a\u914d\u7f6e\u8a02\u95b1\u8005<\/h3>\n<pre><code>\n-- \u5728\u8a02\u95b1\u8005\u4e0a\u6dfb\u52a0\u8a02\u95b1\nEXEC sp_addsubscription \n    @publication = 'YourPublication', \n    @subscriber = 'SubscriberServer', \n    @destination_db = 'YourDestinationDatabase', \n    @subscription_type = 'push';\n<\/code><\/pre>\n<h3 id=\"%e6%ad%a5%e9%a9%9f-4%ef%bc%9a%e5%95%9f%e5%8b%95%e5%90%8c%e6%ad%a5-OVPKcDQaJy\">\u6b65\u9a5f 4\uff1a\u555f\u52d5\u540c\u6b65<\/h3>\n<pre><code>\n-- \u555f\u52d5\u540c\u6b65\nEXEC sp_start_job @job_name = 'YourReplicationJob';\n<\/code><\/pre>\n<h2 id=\"%e6%b3%a8%e6%84%8f%e4%ba%8b%e9%a0%85-OVPKcDQaJy\">\u6ce8\u610f\u4e8b\u9805<\/h2>\n<p>\u5728\u9032\u884c\u6578\u64da\u5eab\u540c\u6b65\u6642\uff0c\u9700\u6ce8\u610f\u4ee5\u4e0b\u5e7e\u9ede\uff1a<\/p>\n<ul>\n<li>\u78ba\u4fdd\u7db2\u7d61\u9023\u63a5\u7a69\u5b9a\uff0c\u4ee5\u907f\u514d\u540c\u6b65\u904e\u7a0b\u4e2d\u7684\u4e2d\u65b7\u3002<\/li>\n<li>\u5b9a\u671f\u6aa2\u67e5\u540c\u6b65\u72c0\u614b\uff0c\u78ba\u4fdd\u6578\u64da\u7684\u4e00\u81f4\u6027\u3002<\/li>\n<li>\u8003\u616e\u6578\u64da\u7684\u5b89\u5168\u6027\uff0c\u78ba\u4fdd\u5728\u540c\u6b65\u904e\u7a0b\u4e2d\u6578\u64da\u4e0d\u6703\u88ab\u672a\u6388\u6b0a\u8a2a\u554f\u3002<\/li>\n<\/ul>\n<h2 id=\"%e7%b5%90%e8%ab%96-OVPKcDQaJy\">\u7d50\u8ad6<\/h2>\n<p>\u6578\u64da\u5eab\u7684\u540c\u6b65\u5c0d\u65bc\u4f01\u696d\u7684\u904b\u71df\u81f3\u95dc\u91cd\u8981\uff0c\u7279\u5225\u662f\u5c0d\u65bc\u50cf XKER.COM \u9019\u6a23\u9700\u8981\u9ad8\u53ef\u7528\u6027\u548c\u6578\u64da\u4e00\u81f4\u6027\u7684\u516c\u53f8\u3002\u901a\u904e\u4f7f\u7528 SQL Server \u7684\u8907\u88fd\u529f\u80fd\uff0c\u4f01\u696d\u53ef\u4ee5\u6709\u6548\u5730\u5be6\u73fe\u6578\u64da\u7684\u540c\u6b65\uff0c\u5f9e\u800c\u63d0\u9ad8\u696d\u52d9\u6548\u7387\u548c\u6578\u64da\u5b89\u5168\u6027\u3002<\/p>\n<p>\u5982\u679c\u60a8\u6b63\u5728\u5c0b\u627e\u53ef\u9760\u7684 <a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a> \u89e3\u6c7a\u65b9\u6848\u4f86\u652f\u6301\u60a8\u7684\u6578\u64da\u5eab\u64cd\u4f5c\uff0cServer.HK \u63d0\u4f9b\u591a\u7a2e\u9078\u64c7\uff0c\u6eff\u8db3\u4e0d\u540c\u9700\u6c42\u3002\u7121\u8ad6\u662f <a href=\"https:\/\/server.hk\">\u4e91\u670d\u52a1\u5668<\/a> \u9084\u662f <a href=\"https:\/\/server.hk\">\u9999\u6e2f\u670d\u52a1\u5668<\/a>\uff0c\u6211\u5011\u90fd\u80fd\u70ba\u60a8\u63d0\u4f9b\u7a69\u5b9a\u7684\u652f\u6301\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5b78\u7fd2\u5982\u4f55\u5728XKER.COM\u4e0a\u540c\u6b65\u5169\u500bSQL Server\u6578\u64da\u5eab\uff0c\u78ba\u4fdd\u6578\u64da\u4e00\u81f4\u6027\u548c\u9ad8\u6548\u7ba1\u7406\u3002<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[101],"tags":[],"class_list":["post-189348","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/189348","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=189348"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/189348\/revisions"}],"predecessor-version":[{"id":189349,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/189348\/revisions\/189349"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=189348"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=189348"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=189348"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}