{"id":5589,"date":"2018-08-29T11:37:21","date_gmt":"2018-08-29T02:37:21","guid":{"rendered":"https:\/\/auctionpro.co.kr\/?p=5589"},"modified":"2018-08-29T13:13:39","modified_gmt":"2018-08-29T04:13:39","slug":"msslq-%ed%94%84%eb%a1%9c%ec%8b%9c%ec%a0%80-%ec%98%a4%eb%9e%98%eb%90%9c-%eb%8d%b0%ec%9d%b4%ed%83%80-%ec%9e%90%eb%8f%99-%ec%82%ad%ec%a0%9c","status":"publish","type":"post","link":"https:\/\/www.auctionpro.co.kr\/?p=5589","title":{"rendered":"msslq \ud504\ub85c\uc2dc\uc800) \uc624\ub798\ub41c \ub370\uc774\ud0c0 \uc790\ub3d9 \uc0ad\uc81c"},"content":{"rendered":"\n<pre class=\"lang:vim decode:true \" >-- =============================================\r\n-- Author:\tAuthor\r\n-- Create date: 2018-03-28\r\n-- Description:\t\uc624\ub798\ub41c \ub370\uc774\ud0c0 \uc790\ub3d9 \uc0ad\uc81c \r\n-- =============================================\r\nCREATE PROCEDURE [dbo].[ClearDataSchedule]\r\n\t-- Add the parameters for the stored procedure here\r\n\r\nAS\r\nBEGIN\r\n\t-- SET NOCOUNT ON added to prevent extra result sets from\r\n\t-- interfering with SELECT statements.\r\n\tSET NOCOUNT ON;\r\n\r\n\r\nDeclare @OldDate DateTime\r\nDeclare @sOldDate varchar(10)\r\n\r\nSet @OldDate=(DATEADD(mm,-5,GETDATE())) -- 5\ub2ec \uc774\uc804\uaebc \uc0ad\uc81c\r\nSet @sOldDate = CONVERT(CHAR(10),@OldDate, 23)\r\n\r\n    -- Insert statements for procedure here\r\n     delete FROM [MYDB].[dbo].[MYTABLE1] where [Regi_Date]&lt;@sOldDate\r\n\r\n\t delete FROM [MYDB].[dbo].[MYTABLE2] where [Regi_Date]&lt;@sOldDate\r\n\r\n\t delete FROM [MYDB].[dbo].[MYTABLE3] where [Regi_Date]&lt;@sOldDate\r\n\r\n\t delete FROM [MYDB].[dbo].[MYTABLE4] where [Regi_Date]&lt;@sOldDate\r\n\r\n\t delete FROM [MYDB].[dbo].[MYTABLE5]  where [Regi_Date]&lt;@sOldDate\r\n\r\n\t delete FROM [MYDB].[dbo].[MYTABLE6]  where [Regi_Date]&lt;@sOldDate\r\n\r\n\t delete FROM [MYDB].[dbo].[MYTABLE7] where [Regi_Date]&lt;@sOldDate\r\n\r\n\t delete FROM [MYDB].[dbo].[MYTABLE8]  where [Regi_Date]&lt;@sOldDate\r\n\r\n\t delete FROM [MYDB].[dbo].[MYTABLE9] where [Regi_Date]&lt;@sOldDate\r\n\t \r\nEnd <\/pre>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>&#8212; ============================================= &#8212; Author: Author &#8212; Create date: 2018-03-28 &#8212; Description: \uc624\ub798\ub41c \ub370\uc774\ud0c0 \uc790\ub3d9 \uc0ad\uc81c &#8212; ============================================= CREATE PROCEDURE [dbo].[ClearDataSchedule] &#8212; Add the parameters for <a class=\"mh-excerpt-more\" href=\"https:\/\/www.auctionpro.co.kr\/?p=5589\" title=\"msslq \ud504\ub85c\uc2dc\uc800) \uc624\ub798\ub41c \ub370\uc774\ud0c0 \uc790\ub3d9 \uc0ad\uc81c\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[16],"tags":[],"class_list":["post-5589","post","type-post","status-publish","format-standard","hentry","category-mssql-server"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>msslq \ud504\ub85c\uc2dc\uc800) \uc624\ub798\ub41c \ub370\uc774\ud0c0 \uc790\ub3d9 \uc0ad\uc81c - AuctionPro<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.auctionpro.co.kr\/?p=5589\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"msslq \ud504\ub85c\uc2dc\uc800) \uc624\ub798\ub41c \ub370\uc774\ud0c0 \uc790\ub3d9 \uc0ad\uc81c - AuctionPro\" \/>\n<meta property=\"og:description\" content=\"-- ============================================= -- Author: Author -- Create date: 2018-03-28 -- Description: \uc624\ub798\ub41c \ub370\uc774\ud0c0 \uc790\ub3d9 \uc0ad\uc81c -- ============================================= CREATE PROCEDURE [dbo].[ClearDataSchedule] -- Add the parameters for [...]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.auctionpro.co.kr\/?p=5589\" \/>\n<meta property=\"og:site_name\" content=\"AuctionPro\" \/>\n<meta property=\"article:published_time\" content=\"2018-08-29T02:37:21+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-08-29T04:13:39+00:00\" \/>\n<meta name=\"author\" content=\"golgol\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\uae00\uc4f4\uc774\" \/>\n\t<meta name=\"twitter:data1\" content=\"golgol\" \/>\n\t<meta name=\"twitter:label2\" content=\"\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04\" \/>\n\t<meta name=\"twitter:data2\" content=\"1\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.auctionpro.co.kr\\\/?p=5589#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.auctionpro.co.kr\\\/?p=5589\"},\"author\":{\"name\":\"golgol\",\"@id\":\"https:\\\/\\\/www.auctionpro.co.kr\\\/#\\\/schema\\\/person\\\/d3dbae599b06cd55f5b14a3e2116f7a2\"},\"headline\":\"msslq \ud504\ub85c\uc2dc\uc800) \uc624\ub798\ub41c \ub370\uc774\ud0c0 \uc790\ub3d9 \uc0ad\uc81c\",\"datePublished\":\"2018-08-29T02:37:21+00:00\",\"dateModified\":\"2018-08-29T04:13:39+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.auctionpro.co.kr\\\/?p=5589\"},\"wordCount\":1,\"commentCount\":0,\"articleSection\":[\"[DB]MSSQL Server\"],\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.auctionpro.co.kr\\\/?p=5589#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.auctionpro.co.kr\\\/?p=5589\",\"url\":\"https:\\\/\\\/www.auctionpro.co.kr\\\/?p=5589\",\"name\":\"msslq \ud504\ub85c\uc2dc\uc800) \uc624\ub798\ub41c \ub370\uc774\ud0c0 \uc790\ub3d9 \uc0ad\uc81c - AuctionPro\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.auctionpro.co.kr\\\/#website\"},\"datePublished\":\"2018-08-29T02:37:21+00:00\",\"dateModified\":\"2018-08-29T04:13:39+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.auctionpro.co.kr\\\/#\\\/schema\\\/person\\\/d3dbae599b06cd55f5b14a3e2116f7a2\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.auctionpro.co.kr\\\/?p=5589#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.auctionpro.co.kr\\\/?p=5589\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.auctionpro.co.kr\\\/?p=5589#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\\\/\\\/www.auctionpro.co.kr\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"msslq \ud504\ub85c\uc2dc\uc800) \uc624\ub798\ub41c \ub370\uc774\ud0c0 \uc790\ub3d9 \uc0ad\uc81c\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.auctionpro.co.kr\\\/#website\",\"url\":\"https:\\\/\\\/www.auctionpro.co.kr\\\/\",\"name\":\"AuctionPro\",\"description\":\"\uc625\uc158\ud504\ub85c\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.auctionpro.co.kr\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.auctionpro.co.kr\\\/#\\\/schema\\\/person\\\/d3dbae599b06cd55f5b14a3e2116f7a2\",\"name\":\"golgol\",\"url\":\"https:\\\/\\\/www.auctionpro.co.kr\\\/?author=6\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"msslq \ud504\ub85c\uc2dc\uc800) \uc624\ub798\ub41c \ub370\uc774\ud0c0 \uc790\ub3d9 \uc0ad\uc81c - AuctionPro","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.auctionpro.co.kr\/?p=5589","og_locale":"ko_KR","og_type":"article","og_title":"msslq \ud504\ub85c\uc2dc\uc800) \uc624\ub798\ub41c \ub370\uc774\ud0c0 \uc790\ub3d9 \uc0ad\uc81c - AuctionPro","og_description":"-- ============================================= -- Author: Author -- Create date: 2018-03-28 -- Description: \uc624\ub798\ub41c \ub370\uc774\ud0c0 \uc790\ub3d9 \uc0ad\uc81c -- ============================================= CREATE PROCEDURE [dbo].[ClearDataSchedule] -- Add the parameters for [...]","og_url":"https:\/\/www.auctionpro.co.kr\/?p=5589","og_site_name":"AuctionPro","article_published_time":"2018-08-29T02:37:21+00:00","article_modified_time":"2018-08-29T04:13:39+00:00","author":"golgol","twitter_card":"summary_large_image","twitter_misc":{"\uae00\uc4f4\uc774":"golgol","\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04":"1\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.auctionpro.co.kr\/?p=5589#article","isPartOf":{"@id":"https:\/\/www.auctionpro.co.kr\/?p=5589"},"author":{"name":"golgol","@id":"https:\/\/www.auctionpro.co.kr\/#\/schema\/person\/d3dbae599b06cd55f5b14a3e2116f7a2"},"headline":"msslq \ud504\ub85c\uc2dc\uc800) \uc624\ub798\ub41c \ub370\uc774\ud0c0 \uc790\ub3d9 \uc0ad\uc81c","datePublished":"2018-08-29T02:37:21+00:00","dateModified":"2018-08-29T04:13:39+00:00","mainEntityOfPage":{"@id":"https:\/\/www.auctionpro.co.kr\/?p=5589"},"wordCount":1,"commentCount":0,"articleSection":["[DB]MSSQL Server"],"inLanguage":"ko-KR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.auctionpro.co.kr\/?p=5589#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.auctionpro.co.kr\/?p=5589","url":"https:\/\/www.auctionpro.co.kr\/?p=5589","name":"msslq \ud504\ub85c\uc2dc\uc800) \uc624\ub798\ub41c \ub370\uc774\ud0c0 \uc790\ub3d9 \uc0ad\uc81c - AuctionPro","isPartOf":{"@id":"https:\/\/www.auctionpro.co.kr\/#website"},"datePublished":"2018-08-29T02:37:21+00:00","dateModified":"2018-08-29T04:13:39+00:00","author":{"@id":"https:\/\/www.auctionpro.co.kr\/#\/schema\/person\/d3dbae599b06cd55f5b14a3e2116f7a2"},"breadcrumb":{"@id":"https:\/\/www.auctionpro.co.kr\/?p=5589#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.auctionpro.co.kr\/?p=5589"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.auctionpro.co.kr\/?p=5589#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/www.auctionpro.co.kr\/"},{"@type":"ListItem","position":2,"name":"msslq \ud504\ub85c\uc2dc\uc800) \uc624\ub798\ub41c \ub370\uc774\ud0c0 \uc790\ub3d9 \uc0ad\uc81c"}]},{"@type":"WebSite","@id":"https:\/\/www.auctionpro.co.kr\/#website","url":"https:\/\/www.auctionpro.co.kr\/","name":"AuctionPro","description":"\uc625\uc158\ud504\ub85c","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.auctionpro.co.kr\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":"Person","@id":"https:\/\/www.auctionpro.co.kr\/#\/schema\/person\/d3dbae599b06cd55f5b14a3e2116f7a2","name":"golgol","url":"https:\/\/www.auctionpro.co.kr\/?author=6"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/5589","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5589"}],"version-history":[{"count":0,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/5589\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5589"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5589"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5589"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}