{"id":2219,"date":"2012-07-05T14:00:08","date_gmt":"2012-07-05T06:00:08","guid":{"rendered":"http:\/\/jason695.why3s.tw\/wordpress\/?p=2219"},"modified":"2012-07-05T14:17:01","modified_gmt":"2012-07-05T06:17:01","slug":"%e5%a6%82%e4%bd%95%e6%9f%a5%e8%a9%a2sp%e5%85%a7%e5%ae%b9","status":"publish","type":"post","link":"https:\/\/jason695.why3s.tw\/wordpress\/2012\/07\/05\/%e5%a6%82%e4%bd%95%e6%9f%a5%e8%a9%a2sp%e5%85%a7%e5%ae%b9\/","title":{"rendered":"\u5982\u4f55\u67e5\u8a62SP\u5167\u5bb9"},"content":{"rendered":"<p><a href=\"http:\/\/careychen.pixnet.net\/blog\/post\/21580776\">[SQL] \u53d6\u51fa MS SQL \u9810\u5b58\u7a0b\u5f0f(Stored Procedure) \u7684\u6587\u5b57\u5167\u5bb9<\/a><br \/>\n<a href=\"http:\/\/delphi.ktop.com.tw\/board.php?cid=18&amp;fid=1494&amp;tid=91647\">\u5982\u4f55\u5728\u5728\u6240\u6709\u7684\u5b58\u5132\u904e\u7a0b\u4e2d\u627e\u4e00\u500b\u95dc\u5065\u5b57<\/a><\/p>\n<pre class=\"lang:pgsql decode:true\">select distinct b.name, b.xtype, object_name(b.parent_obj) as parent_name\r\nfrom syscomments a, sysobjects b\r\nwhere a.text like '%\u67e5\u8a62\u6587\u5b57%' and b.id=a.id and b.status&gt;=0 and\r\n      (b.xtype='P' or b.xtype='TR' or b.xtype='V' or b.xtype='FN')\r\norder by b.xtype, object_name(b.parent_obj), b.name<\/pre>\n<p>\u5176\u4e2d\u5728 SysObject \u88e1<\/p>\n<p>Name ==&gt;\u00a0\u4ee3\u8868\u7269\u4ef6\u7684\u540d\u5b57<br \/>\nTable, Primary Key, Trigger, Procedure, View, Function name<\/p>\n<p>xtype ==&gt; \u4ee3\u8868\u7269\u4ef6\u7684\u985e\u5225<br \/>\nU = Table, PK = Primary Key,\u00a0TR = trigger, P = procedure, V = view, FN = function<\/p>\n<p>parent_name:<br \/>\n\u8868\u793a trigger \u6216 PKey \u7684 table name<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[SQL] \u53d6\u51fa MS SQL \u9810\u5b58\u7a0b\u5f0f(Stored Procedure) \u7684\u6587\u5b57\u5167\u5bb9 \u5982\u4f55\u5728\u5728\u6240\u6709\u7684\u5b58\u5132\u904e &hellip; <a href=\"https:\/\/jason695.why3s.tw\/wordpress\/2012\/07\/05\/%e5%a6%82%e4%bd%95%e6%9f%a5%e8%a9%a2sp%e5%85%a7%e5%ae%b9\/\" class=\"more-link\">\u95b1\u8b80\u5168\u6587 <span class=\"screen-reader-text\">\u5982\u4f55\u67e5\u8a62SP\u5167\u5bb9<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[47],"tags":[],"class_list":["post-2219","post","type-post","status-publish","format-standard","hentry","category-sql-server","no-featured-image"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/jason695.why3s.tw\/wordpress\/wp-json\/wp\/v2\/posts\/2219","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jason695.why3s.tw\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jason695.why3s.tw\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jason695.why3s.tw\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jason695.why3s.tw\/wordpress\/wp-json\/wp\/v2\/comments?post=2219"}],"version-history":[{"count":0,"href":"https:\/\/jason695.why3s.tw\/wordpress\/wp-json\/wp\/v2\/posts\/2219\/revisions"}],"wp:attachment":[{"href":"https:\/\/jason695.why3s.tw\/wordpress\/wp-json\/wp\/v2\/media?parent=2219"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jason695.why3s.tw\/wordpress\/wp-json\/wp\/v2\/categories?post=2219"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jason695.why3s.tw\/wordpress\/wp-json\/wp\/v2\/tags?post=2219"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}