{"id":193,"date":"2008-07-09T19:23:12","date_gmt":"2008-07-09T10:23:12","guid":{"rendered":"http:\/\/www.climb.co.jp\/blog_dbmoto\/?p=193"},"modified":"2008-07-09T19:23:12","modified_gmt":"2008-07-09T10:23:12","slug":"dbmoto%e3%82%b5%e3%82%a4%e3%83%89%e3%81%a7primary-key%e3%82%92%e8%a8%ad%e5%ae%9a%e3%81%97%e3%81%9f%e5%a0%b4%e5%90%88%e3%81%ae%e3%83%9f%e3%83%a9%e3%83%bc%e3%83%aa%e3%83%b3%e3%82%b0%ef%bc%88sql-server","status":"publish","type":"post","link":"https:\/\/www.climb.co.jp\/blog_dbmoto\/archives\/193","title":{"rendered":"DBMoto\u30b5\u30a4\u30c9\u3067Primary Key\u3092\u8a2d\u5b9a\u3057\u305f\u5834\u5408\u306e\u30df\u30e9\u30fc\u30ea\u30f3\u30b0\uff08SQL Server\uff09\u3010\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3011"},"content":{"rendered":"<p>(Q) PrimaryKey\u306e\u8a2d\u5b9a\u304c\u3055\u308c\u3066\u3044\u306a\u3044\u30c6\u30fc\u30d6\u30eb\u3067\u3001DBMoto\u30b5\u30a4\u30c9\u3067PrimaryKey\u3092<br \/>\u3000\u3000\u8a2d\u5b9a\u3057\u3001\u30df\u30e9\u30fc\u30ea\u30f3\u30b0\u3092\u5b9f\u884c\u3059\u308b\u4e8b\u306f\u53ef\u80fd\u3067\u3059\u304b\uff1f <\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; <br \/>(A) \u4e0b\u8a18\u306e\u624b\u9806\u304b\u3089\u5b9f\u884c\u51fa\u6765\u307e\u3059\u3002\uff08\u4f46\u3057\u30c7\u30fc\u30bf\u304c\u4e00\u610f\u306e\u5834\u5408\u306b\u9650\u308a\u307e\u3059\uff09 <\/p>\n<p>1.\u300cSource Connection Wizard\u300d\u304b\u3089\u3001<br \/>\u3000\u3000&#8221;Use Transactional Replication&#8221;\u30e2\u30fc\u30c9\u3092&#8221;Triggers&#8221;\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002 <br \/><img decoding=\"async\" src=\"\/\/www.climb.co.jp\/blog_dbmoto\/wp-content\/uploads\/2011\/10\/3977c01844b35f149f8a9a72f40b097e.png\" alt=\"\" \/><\/p>\n<p>2.Master Table\u306e\u8a2d\u5b9a\u3092\u3057\u307e\u3059\u3002<br \/><img decoding=\"async\" src=\"\/\/www.climb.co.jp\/blog_dbmoto\/wp-content\/uploads\/2011\/10\/94e28161e0156dddfbb8bca4a2b6ae66.png\" alt=\"\" \/><\/p>\n<p>3.\u300cVerify\u300d\u30dc\u30bf\u30f3\u3092\u62bc\u4e0b\u3057\u305f\u5f8c\u3001\u300cNext\u300d\u3067\u9032\u3093\u3067Wizard\u3092\u5b8c\u4e86\u3057\u307e\u3059\u3002<br \/><img decoding=\"async\" src=\"\/\/www.climb.co.jp\/blog_dbmoto\/wp-content\/uploads\/2011\/10\/d2fd20db04317d93eb1156fb5aafc4d8.png\" alt=\"\" \/><\/p>\n<p>4.Source\u3001Target\u306b\u540c\u3058\u30d7\u30e9\u30a4\u30de\u30ea\u30ad\u30fc\u3092\u4ed8\u4e0e\u3057\u307e\u3059\u3002<br \/><img decoding=\"async\" src=\"\/\/www.climb.co.jp\/blog_dbmoto\/wp-content\/uploads\/2011\/10\/219b4a219aebf9c4ec2faf2acbadea08.png\" alt=\"\" \/><\/p>\n<p>\u6ce8\u610f\u70b9\u3068\u3057\u3066\u3001\u7d20\u306e\u30c6\u30fc\u30d6\u30eb\u306b\u30d7\u30e9\u30a4\u30de\u30ea\u30ad\u30fc\u304c\u7121\u3044\u6642\u306f\u3001<br \/>\u91cd\u8907\u3057\u305f\u30c7\u30fc\u30bf\u306e\u5b58\u5728\u3092\u5bb9\u8a8d\u3057\u3066\u3044\u308b\u72b6\u614b\u306b\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u4eee\u306b\u91cd\u8907\u3057\u305f\u30c7\u30fc\u30bf\u304c\u5b58\u5728\u3059\u308b\u30d5\u30a3\u30fc\u30eb\u30c9\u306bPK\u3092\u8a2d\u5b9a\u3057\u3001\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u884c\u3057\u305f\u5834\u5408\u3001<br \/>\u30ea\u30d5\u30ec\u30c3\u30b7\u30e5\u306f\u53ef\u80fd\u3067\u3082\u30df\u30e9\u30fc\u30ea\u30f3\u30b0\u306f\u51fa\u6765\u307e\u305b\u3093\u3002\uff08\u91cd\u8907\u306e\u30a8\u30e9\u30fc\u304c\u51fa\u307e\u3059\uff09<br \/>\u5b9f\u884c\u306e\u969b\u306f\u3001\u4e0a\u8a18\u306e\u70b9\u306b\u3054\u6ce8\u610f\u4e0b\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>(Q) PrimaryKey\u306e\u8a2d\u5b9a\u304c\u3055\u308c\u3066\u3044\u306a\u3044\u30c6\u30fc\u30d6\u30eb\u3067\u3001DBMoto\u30b5\u30a4\u30c9\u3067PrimaryKey\u3092\u3000\u3000\u8a2d\u5b9a\u3057\u3001\u30df\u30e9\u30fc\u30ea\u30f3\u30b0\u3092\u5b9f\u884c\u3059\u308b\u4e8b\u306f\u53ef\u80fd\u3067\u3059\u304b\uff1f &#8212;&#8212;&#8212;&#8212;&#038;#821 &hellip; <a href=\"https:\/\/www.climb.co.jp\/blog_dbmoto\/archives\/193\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-193","post","type-post","status-publish","format-standard","hentry","category-syniti"],"_links":{"self":[{"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/posts\/193","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/comments?post=193"}],"version-history":[{"count":0,"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/posts\/193\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/media?parent=193"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/categories?post=193"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/tags?post=193"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}