OPTIMA_import_Truncate.sql 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  1. USE [OPTIMA]
  2. GO
  3. TRUNCATE TABLE [import].[AA_TRTYPE]
  4. GO
  5. TRUNCATE TABLE [import].[ACCOUNT_INFO]
  6. GO
  7. TRUNCATE TABLE [import].[ACCT_BALANCE]
  8. GO
  9. TRUNCATE TABLE [import].[ACCT_DOC_DATA]
  10. GO
  11. TRUNCATE TABLE [import].[ACCT_DOC_DATA_01]
  12. GO
  13. TRUNCATE TABLE [import].[ACCT_DOC_KEY]
  14. GO
  15. TRUNCATE TABLE [import].[ACCT_DOC_KEY_01]
  16. GO
  17. TRUNCATE TABLE [import].[ACCT_DOC_SALESCLAS]
  18. GO
  19. TRUNCATE TABLE [import].[ACTIVITY]
  20. GO
  21. TRUNCATE TABLE [import].[APPORTIONED_INV_TIME]
  22. GO
  23. TRUNCATE TABLE [import].[APPORTIONED_USED_TIME]
  24. GO
  25. TRUNCATE TABLE [import].[CALENDAR_EVENT]
  26. GO
  27. TRUNCATE TABLE [import].[CALENDAR_INFO]
  28. GO
  29. TRUNCATE TABLE [import].[CALENDAR_PATTERN]
  30. GO
  31. TRUNCATE TABLE [import].[CAR_STATISTIC]
  32. GO
  33. TRUNCATE TABLE [import].[COMM_TRANS_UNIT]
  34. GO
  35. TRUNCATE TABLE [import].[COMM_UNIT]
  36. GO
  37. TRUNCATE TABLE [import].[COURTESY_CAR]
  38. GO
  39. TRUNCATE TABLE [import].[CUSTOMER]
  40. GO
  41. TRUNCATE TABLE [import].[CUSTOMER_Dennis]
  42. GO
  43. TRUNCATE TABLE [import].[CUSTOMER_TRANSACT]
  44. GO
  45. TRUNCATE TABLE [import].[DEPARTMENT_TYPE]
  46. GO
  47. TRUNCATE TABLE [import].[EMPLOYEE]
  48. GO
  49. TRUNCATE TABLE [import].[ORDER_ACCUMULATION]
  50. GO
  51. TRUNCATE TABLE [import].[ORDER_HEADER]
  52. GO
  53. TRUNCATE TABLE [import].[ORDER_LINE]
  54. GO
  55. TRUNCATE TABLE [import].[ORDER_OPEN_ITEMS]
  56. GO
  57. TRUNCATE TABLE [import].[ORDER_SERVICE_SCHEMES]
  58. GO
  59. TRUNCATE TABLE [import].[PERSON]
  60. GO
  61. TRUNCATE TABLE [import].[PERSON_INFO]
  62. GO
  63. TRUNCATE TABLE [import].[PRODUCT_FILE]
  64. GO
  65. TRUNCATE TABLE [import].[PRODUCT_STOCK_FILE]
  66. GO
  67. TRUNCATE TABLE [import].[PROFILE]
  68. GO
  69. TRUNCATE TABLE [import].[PROFILE_TYPE]
  70. GO
  71. TRUNCATE TABLE [import].[PUNCH]
  72. GO
  73. TRUNCATE TABLE [import].[PURCH_DISC_TYPES]
  74. GO
  75. TRUNCATE TABLE [import].[PURCH_DISCOUNTS]
  76. GO
  77. TRUNCATE TABLE [import].[SERVICE_2000_FILE]
  78. GO
  79. TRUNCATE TABLE [import].[SUPPLIER]
  80. GO
  81. TRUNCATE TABLE [import].[SUPPLIER_TRANSACT]
  82. GO
  83. TRUNCATE TABLE [import].[TIME_CONTROL_END]
  84. GO
  85. TRUNCATE TABLE [import].[TIME_CONTROL_OPEN]
  86. GO
  87. TRUNCATE TABLE [import].[TIME_CONTROL_TRANS]
  88. GO
  89. TRUNCATE TABLE [import].[TRANSACTION_TYPE]
  90. GO
  91. TRUNCATE TABLE [import].[UNIT_CHANGE_HIST]
  92. GO
  93. TRUNCATE TABLE [import].[UNIT_CLASSIFICAT]
  94. GO
  95. TRUNCATE TABLE [import].[UNIT_FILE]
  96. GO
  97. TRUNCATE TABLE [import].[UNIT_HISTORY]
  98. GO
  99. TRUNCATE TABLE [import].[UNIT_LINK_EXT]
  100. GO
  101. TRUNCATE TABLE [import].[UNIT_SALES_PRICE_LOG]
  102. GO
  103. TRUNCATE TABLE [import].[UNIT_STATUS_HIST]
  104. GO
  105. TRUNCATE TABLE [import].[UNIT_TEMP_TAB_GRNI]
  106. GO
  107. TRUNCATE TABLE [import].[UNIT_TRANSFER_TAB]
  108. GO
  109. TRUNCATE TABLE [import].[UNIT_TYPE_FILE]
  110. GO
  111. TRUNCATE TABLE [import].[UPDATE_OPTION]
  112. GO
  113. TRUNCATE TABLE [import].[VEH_CARGRP_PURCHORIGIN]
  114. GO
  115. TRUNCATE TABLE [import].[VEH_CLASSIFICATION_CODE]
  116. GO
  117. TRUNCATE TABLE [import].[VEH_IN_TRANSIT]
  118. GO
  119. TRUNCATE TABLE [import].[VEH_LINK_EXT]
  120. GO
  121. TRUNCATE TABLE [import].[VEH_MAX_STOCK]
  122. GO
  123. TRUNCATE TABLE [import].[VEH_ORDER_HEADER]
  124. GO
  125. TRUNCATE TABLE [import].[VEH_ORDER_LINE]
  126. GO
  127. TRUNCATE TABLE [import].[VEH_ORDER_OPTION]
  128. GO
  129. TRUNCATE TABLE [import].[VEH_TRANSACT_COLUMNS]
  130. GO
  131. TRUNCATE TABLE [import].[VEH_TRANSACT_GRID]
  132. GO
  133. TRUNCATE TABLE [import].[VEH_TRANSACT_GROUPS]
  134. GO
  135. TRUNCATE TABLE [import].[VEH_TRANSMISSION_CODES]
  136. GO
  137. TRUNCATE TABLE [import].[VEHICLE]
  138. GO
  139. TRUNCATE TABLE [import].[VEHICLE_ACCRUALS]
  140. GO
  141. TRUNCATE TABLE [import].[VEHICLE_DOCKETCARD]
  142. GO
  143. TRUNCATE TABLE [import].[VEHICLE_EXTENSION]
  144. GO
  145. TRUNCATE TABLE [import].[VPP25]
  146. GO
  147. TRUNCATE TABLE [import].[vPP2C]
  148. GO
  149. TRUNCATE TABLE [import].[VPP43]
  150. GO
  151. TRUNCATE TABLE [import].[VPP48]
  152. GO
  153. TRUNCATE TABLE [import].[vPP4K]
  154. GO
  155. TRUNCATE TABLE [import].[vPP51]
  156. GO
  157. TRUNCATE TABLE [import].[vPP53]
  158. GO
  159. TRUNCATE TABLE [import].[vPP5A]
  160. GO
  161. TRUNCATE TABLE [import].[vPP5M]
  162. GO
  163. TRUNCATE TABLE [import].[VPP5Q]
  164. GO
  165. TRUNCATE TABLE [import].[vPP5R]
  166. GO
  167. TRUNCATE TABLE [import].[vPP61]
  168. GO
  169. TRUNCATE TABLE [import].[vPP65]
  170. GO
  171. TRUNCATE TABLE [import].[vPP72]
  172. GO
  173. TRUNCATE TABLE [import].[VPP73]
  174. GO
  175. TRUNCATE TABLE [import].[vPP74]
  176. GO
  177. TRUNCATE TABLE [import].[VPP91]
  178. GO
  179. TRUNCATE TABLE [import].[vPP93]
  180. GO
  181. TRUNCATE TABLE [import].[vPPT1]
  182. GO
  183. TRUNCATE TABLE [import].[WORK_LINE_STATUS]
  184. GO
  185. TRUNCATE TABLE [import].[WORK_UNITS]
  186. GO
  187. TRUNCATE TABLE [import].[WORKING_PERIOD]
  188. GO
  189. TRUNCATE TABLE [import].[WORKSHOP_ORDER_SPLIT]
  190. GO
  191. TRUNCATE TABLE [import].[WORKSHOP_PLANNING]
  192. GO
  193. TRUNCATE TABLE [import].[WORKSHOP_TEAMS]
  194. GO