{"id":1102,"date":"2012-10-16T11:38:24","date_gmt":"2012-10-16T02:38:24","guid":{"rendered":"http:\/\/auctionpro.co.kr\/?p=1102"},"modified":"2017-02-27T09:47:12","modified_gmt":"2017-02-27T00:47:12","slug":"ms-sql-%ec%8a%a4%ed%81%ac%eb%a6%bd%ed%8a%b8%eb%a1%9c-%eb%8d%b0%ec%9d%b4%ed%83%80-%eb%84%a3%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/www.auctionpro.co.kr\/?p=1102","title":{"rendered":"ms sql \uc2a4\ud06c\ub9bd\ud2b8\ub85c \ub370\uc774\ud0c0 \ub123\uae30"},"content":{"rendered":"<p>SET ANSI_NULLS ON<br \/>\nGO<\/p>\n<p>SET QUOTED_IDENTIFIER ON<br \/>\nGO<\/p>\n<p>CREATE TABLE [dbo].[COMPANY](<br \/>\n[COMPANYID] [int] NOT NULL,<br \/>\n[COMPANYNAME] [nvarchar](150) NULL,<br \/>\n[COMPANYEMAIL] [nvarchar](150) NULL,<br \/>\n[COMPANYSIZE] [nvarchar](150) NULL,<br \/>\nCONSTRAINT [PK_COMPANY] PRIMARY KEY CLUSTERED<br \/>\n(<br \/>\n[COMPANYID] ASC<br \/>\n)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]<br \/>\n) ON [PRIMARY]<\/p>\n<p>GO<\/p>\n<p>&nbsp;<\/p>\n<p>declare @idx int<br \/>\nset @idx = 0<\/p>\n<p>while(@idx&lt;1000000)<br \/>\nBegin<br \/>\nINSERT INTO [Enterprise4].[dbo].[COMPANY]<br \/>\n([COMPANYID]<br \/>\n,[COMPANYNAME]<br \/>\n,[COMPANYEMAIL]<br \/>\n,[COMPANYSIZE])<br \/>\nVALUES<br \/>\n(@idx<br \/>\n,&#8217;company&#8217;<br \/>\n,&#8217;com@email.com&#8217;<br \/>\n,100000)<\/p>\n<p>set @idx = @idx +1<\/p>\n<p>end<\/p>\n<p>GO<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[COMPANY]( [COMPANYID] [int] NOT NULL, [COMPANYNAME] [nvarchar](150) NULL, [COMPANYEMAIL] [nvarchar](150) NULL, [COMPANYSIZE] [nvarchar](150) NULL, CONSTRAINT <a class=\"mh-excerpt-more\" href=\"https:\/\/www.auctionpro.co.kr\/?p=1102\" title=\"ms sql \uc2a4\ud06c\ub9bd\ud2b8\ub85c \ub370\uc774\ud0c0 \ub123\uae30\">[&#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,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[16],"tags":[],"class_list":["post-1102","post","type-post","status-publish","format-standard","hentry","category-mssql-server"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/1102","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=1102"}],"version-history":[{"count":0,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/1102\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1102"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1102"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1102"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}