SELECT 'TRUNCATE TABLE ['+DB_NAME()+'].dbo.' + t.name+ '; ' FROM sysobjects t WHERE t.xtype='U' AND name NOT IN('dtproperties','sysdiagrams','m全社共通') order by 1
SELECT 'TRUNCATE TABLE ['+DB_NAME()+'].dbo.' + t.name+ '; ' FROM sysobjects t WHERE t.xtype='U' AND name NOT IN('dtproperties','sysdiagrams','m全社共通') order by 1