ãã¼ãã«ãããã¼ãã«ã¸ãã¼ã¿ãã³ãã¼ãããã¨ãããã ãåãªã¹ãã使ç¨ããã¦ãã¦ãIDENTITY_INSERT ã ON ã®ã¨ãã«éãããã¼ãã« 'SAMPLE_1' ã® ID åã«æ示çãªå¤ãæå®ã§ãã¾ããã ã¨ã¨ã©ã¼ãã§ã¦ããã¼ãã«ã«Insertã§ããªãã£ãã SET IDENTITY_INSERT TABLEå ON 㧠IDENTITY_INSERTããããã£ãONã«ããã°ã§ããã ONã®å¾ã¯OFFã«æ»ãã¦ããã SET IDENTITY_INSERT SAMPLE_1 ON INSERT INTO SAMPLE_1 (ID, Name, Status, XTime) SELECT ID, Name, Status, XTime FROM SAMPLE_2 SET IDENTITY_INSERT SAMPLE_1 OFF http://msdn.microsoft.com/ja-
{{#tags}}- {{label}}
{{/tags}}