CARLO_Fehlende_Tabellen.sql 45 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613
  1. USE [CARLO]
  2. GO
  3. /****** Object: Table [import].[Abnehmergruppe_VW] Script Date: 17.09.2018 17:27:07 ******/
  4. SET ANSI_NULLS ON
  5. GO
  6. SET QUOTED_IDENTIFIER ON
  7. GO
  8. CREATE TABLE [import].[Abnehmergruppe_VW](
  9. [timestamp] [binary](8) NOT NULL,
  10. [Debitorengruppencode] [varchar](20) NOT NULL,
  11. [Abnehmergruppe] [varchar](10) NOT NULL,
  12. [Beschreibung] [varchar](30) NOT NULL,
  13. [Abn_-Grp_ 4-stellig] [varchar](10) NOT NULL,
  14. [Skoda Abnehmergr_] [varchar](10) NOT NULL,
  15. [Abnehmergruppe Autopart] [varchar](10) NOT NULL,
  16. [Client_DB] [varchar](50) NOT NULL,
  17. CONSTRAINT [Abnehmergruppe VW$0] PRIMARY KEY CLUSTERED
  18. (
  19. [Debitorengruppencode] ASC
  20. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  21. ) ON [PRIMARY]
  22. GO
  23. /****** Object: Table [import].[Fahrzeug Hauptgruppe] Script Date: 17.09.2018 17:27:07 ******/
  24. SET ANSI_NULLS ON
  25. GO
  26. SET QUOTED_IDENTIFIER ON
  27. GO
  28. CREATE TABLE [import].[Fahrzeug_Hauptgruppe](
  29. [timestamp] [binary](8) NOT NULL,
  30. [Markencode] [varchar](10) NOT NULL,
  31. [Code] [varchar](10) NOT NULL,
  32. [Beschreibung] [varchar](50) NOT NULL,
  33. [Beschreibung 2] [varchar](50) NOT NULL,
  34. [Beschreibung updaten] [tinyint] NOT NULL,
  35. [Client_DB] [varchar](50) NOT NULL,
  36. CONSTRAINT [Fahrzeug Hauptgruppe$0] PRIMARY KEY CLUSTERED
  37. (
  38. [Markencode] ASC,
  39. [Code] ASC
  40. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  41. ) ON [PRIMARY]
  42. GO
  43. /****** Object: Table [import].[Fahrzeug Untergruppe] Script Date: 17.09.2018 17:27:07 ******/
  44. SET ANSI_NULLS ON
  45. GO
  46. SET QUOTED_IDENTIFIER ON
  47. GO
  48. CREATE TABLE [import].[Fahrzeug_Untergruppe](
  49. [timestamp] [binary](8) NOT NULL,
  50. [Markencode] [varchar](10) NOT NULL,
  51. [Code] [varchar](10) NOT NULL,
  52. [Gehört zu Hauptgruppe] [varchar](10) NOT NULL,
  53. [Beschreibung] [varchar](30) NOT NULL,
  54. [Beschreibung 2] [varchar](30) NOT NULL,
  55. [Client_DB] [varchar](50) NOT NULL,
  56. CONSTRAINT [Fahrzeug Untergruppe$0] PRIMARY KEY CLUSTERED
  57. (
  58. [Markencode] ASC,
  59. [Code] ASC,
  60. [Gehört zu Hauptgruppe] ASC
  61. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  62. ) ON [PRIMARY]
  63. GO
  64. /****** Object: Table [import].[Herkunftscode] Script Date: 17.09.2018 17:27:08 ******/
  65. SET ANSI_NULLS ON
  66. GO
  67. SET QUOTED_IDENTIFIER ON
  68. GO
  69. CREATE TABLE [import].[Herkunftscode](
  70. [timestamp] [binary](8) NOT NULL,
  71. [Code] [varchar](10) NOT NULL,
  72. [Beschreibung] [varchar](50) NOT NULL,
  73. [Client_DB] [varchar](50) NOT NULL,
  74. CONSTRAINT [Herkunftscode$0] PRIMARY KEY CLUSTERED
  75. (
  76. [Code] ASC
  77. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  78. ) ON [PRIMARY]
  79. GO
  80. /****** Object: Table [import].[Kontensch_Kontrolle Sachp BKR] Script Date: 17.09.2018 17:27:08 ******/
  81. SET ANSI_NULLS ON
  82. GO
  83. SET QUOTED_IDENTIFIER ON
  84. GO
  85. CREATE TABLE [import].[Kontensch_Kontrolle_Sachp_BKR](
  86. [timestamp] [binary](8) NOT NULL,
  87. [Lfd_ Nr_] [int] NOT NULL,
  88. [Sachkontonr_] [varchar](20) NOT NULL,
  89. [Buchungsdatum] [datetime] NOT NULL,
  90. [Belegart] [int] NOT NULL,
  91. [Belegnr_] [varchar](20) NOT NULL,
  92. [Beschreibung] [varchar](50) NOT NULL,
  93. [Gegenkontonr_] [varchar](20) NOT NULL,
  94. [Betrag] [decimal](38, 20) NOT NULL,
  95. [Kostenstellencode] [varchar](10) NOT NULL,
  96. [Markencode] [varchar](10) NOT NULL,
  97. [Benutzer ID] [varchar](20) NOT NULL,
  98. [Herkunftscode] [varchar](10) NOT NULL,
  99. [Systembuchung] [tinyint] NOT NULL,
  100. [Nachbuchung] [tinyint] NOT NULL,
  101. [Projektnr_] [varchar](20) NOT NULL,
  102. [Menge] [decimal](38, 20) NOT NULL,
  103. [Menge2] [decimal](38, 20) NOT NULL,
  104. [Konzernmandantencode] [varchar](10) NOT NULL,
  105. [Buch_-Blatt Name] [varchar](10) NOT NULL,
  106. [Ursachencode] [varchar](10) NOT NULL,
  107. [Buchungsart] [int] NOT NULL,
  108. [Geschäftsbuchungsgruppe] [varchar](10) NOT NULL,
  109. [Produktbuchungsgruppe] [varchar](10) NOT NULL,
  110. [Gegenkontoart] [int] NOT NULL,
  111. [Transaktionsnr_] [int] NOT NULL,
  112. [Sollbetrag] [decimal](38, 20) NOT NULL,
  113. [Habenbetrag] [decimal](38, 20) NOT NULL,
  114. [Belegdatum] [datetime] NOT NULL,
  115. [Externe Belegnummer] [varchar](20) NOT NULL,
  116. [Herkunftsart] [int] NOT NULL,
  117. [Herkunftsnr_] [varchar](20) NOT NULL,
  118. [Nummernserie] [varchar](10) NOT NULL,
  119. [Steuergebietscode] [varchar](20) NOT NULL,
  120. [Steuerpflichtig] [tinyint] NOT NULL,
  121. [Steuergruppencode] [varchar](10) NOT NULL,
  122. [Verbrauchssteuer] [tinyint] NOT NULL,
  123. [MWSt Geschäftsbuchungsgruppe] [varchar](10) NOT NULL,
  124. [MWSt Produktbuchungsgruppe] [varchar](10) NOT NULL,
  125. [Betrag (BW)] [decimal](38, 20) NOT NULL,
  126. [Sollbetrag (BW)] [decimal](38, 20) NOT NULL,
  127. [Habenbetrag (BW)] [decimal](38, 20) NOT NULL,
  128. [FA-Nr_] [varchar](20) NOT NULL,
  129. [Anlage Postenart] [int] NOT NULL,
  130. [Anlagenposten Lfd_ Nr_] [int] NOT NULL,
  131. [Ausgleichs ID] [varchar](20) NOT NULL,
  132. [geschlossen] [tinyint] NOT NULL,
  133. [AT-USt_ Betrag] [decimal](38, 20) NOT NULL,
  134. [Filialcode] [varchar](10) NOT NULL,
  135. [Hauptbereich] [int] NOT NULL,
  136. [Fahrgestellnummer] [varchar](20) NOT NULL,
  137. [Buchnummer] [varchar](20) NOT NULL,
  138. [Fahrzeug-Kz] [int] NOT NULL,
  139. [Umgebucht] [tinyint] NOT NULL,
  140. [Storniert] [tinyint] NOT NULL,
  141. [Storno für Lfd_ Nr_] [int] NOT NULL,
  142. [Umbuchung für Lfd_ Nr_] [int] NOT NULL,
  143. [Datev lfd_Exportnr_] [int] NOT NULL,
  144. [Alte Sachkontonr_] [varchar](20) NOT NULL,
  145. [Autom_Ausgleich LfdNr_] [int] NOT NULL,
  146. [Fahrzeugklassecode] [varchar](10) NOT NULL,
  147. [geschlossen am] [datetime] NOT NULL,
  148. [MB_Makecode] [varchar](2) NOT NULL,
  149. [MB_Locationcode] [varchar](2) NOT NULL,
  150. [MB_Costcentercode] [varchar](2) NOT NULL,
  151. [MB_Distributionchannelcode] [varchar](2) NOT NULL,
  152. [MB_Costunitcode] [varchar](2) NOT NULL,
  153. [MB_Taxationcode] [varchar](2) NOT NULL,
  154. [GUV_Bilanz] [int] NOT NULL,
  155. [Plausibel] [tinyint] NOT NULL,
  156. [Client_DB] [varchar](50) NOT NULL,
  157. CONSTRAINT [Kontensch_Kontrolle Sachp BKR$0] PRIMARY KEY CLUSTERED
  158. (
  159. [Lfd_ Nr_] ASC
  160. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  161. ) ON [PRIMARY]
  162. GO
  163. /****** Object: Table [import].[Kostenträgerbuchungsgruppe] Script Date: 17.09.2018 17:27:08 ******/
  164. SET ANSI_NULLS ON
  165. GO
  166. SET QUOTED_IDENTIFIER ON
  167. GO
  168. CREATE TABLE [import].[Kostentraegerbuchungsgruppe](
  169. [timestamp] [binary](8) NOT NULL,
  170. [Code] [varchar](10) NOT NULL,
  171. [Text] [varchar](50) NOT NULL,
  172. [Kostenartencode] [varchar](20) NOT NULL,
  173. [Materialzuschl_kontocode] [varchar](20) NOT NULL,
  174. [Fertigungzuschl_kontocode] [varchar](20) NOT NULL,
  175. [Fremdl_Zuschl_kontocode] [varchar](20) NOT NULL,
  176. [Vertriebszuschl_kontocode] [varchar](20) NOT NULL,
  177. [Verwalt_Zuschl_kontocode] [varchar](20) NOT NULL,
  178. [Client_DB] [varchar](50) NOT NULL,
  179. CONSTRAINT [Kostenträgerbuchungsgruppe$0] PRIMARY KEY CLUSTERED
  180. (
  181. [Code] ASC
  182. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  183. ) ON [PRIMARY]
  184. GO
  185. /****** Object: Table [import].[Kostenträgerkonto] Script Date: 17.09.2018 17:27:08 ******/
  186. SET ANSI_NULLS ON
  187. GO
  188. SET QUOTED_IDENTIFIER ON
  189. GO
  190. CREATE TABLE [import].[Kostentraegerkonto](
  191. [timestamp] [binary](8) NOT NULL,
  192. [Nr_] [varchar](20) NOT NULL,
  193. [Name] [varchar](30) NOT NULL,
  194. [Suchbegriff] [varchar](30) NOT NULL,
  195. [Kostenartenart] [int] NOT NULL,
  196. [Buchungsart] [int] NOT NULL,
  197. [Kostenträgerkontencharakter] [int] NOT NULL,
  198. [Einrückung] [int] NOT NULL,
  199. [Gesperrt] [tinyint] NOT NULL,
  200. [Zusammenzählung] [varchar](30) NOT NULL,
  201. [Steuerlich] [tinyint] NOT NULL,
  202. [Betriebswirtschaftlich] [tinyint] NOT NULL,
  203. [Client_DB] [varchar](50) NOT NULL,
  204. CONSTRAINT [Kostenträgerkonto$0] PRIMARY KEY CLUSTERED
  205. (
  206. [Nr_] ASC
  207. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  208. ) ON [PRIMARY]
  209. GO
  210. /****** Object: Table [import].[Kostenträgerposten] Script Date: 17.09.2018 17:27:08 ******/
  211. SET ANSI_NULLS ON
  212. GO
  213. SET QUOTED_IDENTIFIER ON
  214. GO
  215. CREATE TABLE [import].[Kostentraegerposten](
  216. [timestamp] [binary](8) NOT NULL,
  217. [Lfd_ Nr_] [int] NOT NULL,
  218. [Kore Kostenträgernr_] [varchar](10) NOT NULL,
  219. [Buchungsdatum] [datetime] NOT NULL,
  220. [Buchungsart] [int] NOT NULL,
  221. [Herkunftsnr_] [varchar](20) NOT NULL,
  222. [Belegnr_] [varchar](20) NOT NULL,
  223. [Text] [varchar](50) NOT NULL,
  224. [Kostenträgerkontocode] [varchar](20) NOT NULL,
  225. [Geschäft Buch_-Gr_] [varchar](10) NOT NULL,
  226. [Produkt Buch_-Gr_] [varchar](10) NOT NULL,
  227. [Verkäufer_Einkäufer] [varchar](10) NOT NULL,
  228. [Bwl Betrag] [decimal](38, 20) NOT NULL,
  229. [Bwl Betrag fix] [decimal](38, 20) NOT NULL,
  230. [Bwl Betrag var] [decimal](38, 20) NOT NULL,
  231. [Steuerl_ Betrag] [decimal](38, 20) NOT NULL,
  232. [Steuerl_ Betrag fix] [decimal](38, 20) NOT NULL,
  233. [Steuerl_ Betrag var] [decimal](38, 20) NOT NULL,
  234. [Menge] [decimal](38, 20) NOT NULL,
  235. [Belegdatum] [datetime] NOT NULL,
  236. [Profitcentercode] [varchar](10) NOT NULL,
  237. [Projektnr_] [varchar](20) NOT NULL,
  238. [Ländercode] [varchar](10) NOT NULL,
  239. [Orginalbelegnr_] [varchar](20) NOT NULL,
  240. [Ursachencode] [varchar](10) NOT NULL,
  241. [Herkunftscode] [varchar](10) NOT NULL,
  242. [Kore Kostenstellennr_] [varchar](10) NOT NULL,
  243. [Verrechnungssatz fix] [decimal](38, 20) NOT NULL,
  244. [Verrechnungssatz var] [decimal](38, 20) NOT NULL,
  245. [Ergebnisträgercode] [varchar](10) NOT NULL,
  246. [Kostenträgerkontencharakter] [int] NOT NULL,
  247. [Kostenträger Buch_-Gr_] [varchar](10) NOT NULL,
  248. [Betriebsstättecode] [varchar](10) NOT NULL,
  249. [Bezugsgrößencode] [varchar](10) NOT NULL,
  250. [Verrechneter Betrag fix] [decimal](38, 20) NOT NULL,
  251. [Verrechnete Betrag var] [decimal](38, 20) NOT NULL,
  252. [Berechnungsperiode] [datetime] NOT NULL,
  253. [Kostenartencode] [varchar](20) NOT NULL,
  254. [verrechnen an Kostenstelle] [tinyint] NOT NULL,
  255. [Lfd_ Nr_ Kostenstellenposten] [int] NOT NULL,
  256. [Lfd_ Nr_ Sachposten] [int] NOT NULL,
  257. [Benutzer ID] [varchar](10) NOT NULL,
  258. [Client_DB] [varchar](50) NOT NULL,
  259. CONSTRAINT [Kostenträgerposten$0] PRIMARY KEY CLUSTERED
  260. (
  261. [Lfd_ Nr_] ASC
  262. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  263. ) ON [PRIMARY]
  264. GO
  265. /****** Object: Table [import].[MB Branchcode Mapping] Script Date: 17.09.2018 17:27:08 ******/
  266. SET ANSI_NULLS ON
  267. GO
  268. SET QUOTED_IDENTIFIER ON
  269. GO
  270. CREATE TABLE [import].[MB_Branchcode_Mapping](
  271. [timestamp] [binary](8) NOT NULL,
  272. [Main Area] [int] NOT NULL,
  273. [CARLO Branchcode] [varchar](10) NOT NULL,
  274. [MB Locationcode] [varchar](2) NOT NULL,
  275. [Client_DB] [varchar](50) NOT NULL,
  276. CONSTRAINT [MB Branchcode Mapping$0] PRIMARY KEY CLUSTERED
  277. (
  278. [Main Area] ASC,
  279. [CARLO Branchcode] ASC
  280. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  281. ) ON [PRIMARY]
  282. GO
  283. /****** Object: Table [import].[MB Costcenter] Script Date: 17.09.2018 17:27:08 ******/
  284. SET ANSI_NULLS ON
  285. GO
  286. SET QUOTED_IDENTIFIER ON
  287. GO
  288. CREATE TABLE [import].[MB_Costcenter](
  289. [timestamp] [binary](8) NOT NULL,
  290. [Code] [varchar](2) NOT NULL,
  291. [Description] [varchar](100) NOT NULL,
  292. [Client_DB] [varchar](50) NOT NULL,
  293. CONSTRAINT [MB Costcenter$0] PRIMARY KEY CLUSTERED
  294. (
  295. [Code] ASC
  296. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  297. ) ON [PRIMARY]
  298. GO
  299. /****** Object: Table [import].[MB Costcentercode Mapping] Script Date: 17.09.2018 17:27:08 ******/
  300. SET ANSI_NULLS ON
  301. GO
  302. SET QUOTED_IDENTIFIER ON
  303. GO
  304. CREATE TABLE [import].[MB_Costcentercode_Mapping](
  305. [timestamp] [binary](8) NOT NULL,
  306. [CARLO Costcentercode] [varchar](10) NOT NULL,
  307. [CARLO Makecode] [varchar](10) NOT NULL,
  308. [CARLO Product Posting Group] [varchar](10) NOT NULL,
  309. [MB Costcentercode] [varchar](2) NOT NULL,
  310. [Client_DB] [varchar](50) NOT NULL,
  311. CONSTRAINT [MB Costcentercode Mapping$0] PRIMARY KEY CLUSTERED
  312. (
  313. [CARLO Costcentercode] ASC,
  314. [CARLO Makecode] ASC,
  315. [CARLO Product Posting Group] ASC
  316. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  317. ) ON [PRIMARY]
  318. GO
  319. /****** Object: Table [import].[MB Costunit] Script Date: 17.09.2018 17:27:09 ******/
  320. SET ANSI_NULLS ON
  321. GO
  322. SET QUOTED_IDENTIFIER ON
  323. GO
  324. CREATE TABLE [import].[MB_Costunit](
  325. [timestamp] [binary](8) NOT NULL,
  326. [MB Makecode] [varchar](2) NOT NULL,
  327. [Code] [varchar](2) NOT NULL,
  328. [Description] [varchar](100) NOT NULL,
  329. [Client_DB] [varchar](50) NOT NULL,
  330. CONSTRAINT [MB Costunit$0] PRIMARY KEY CLUSTERED
  331. (
  332. [MB Makecode] ASC,
  333. [Code] ASC
  334. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  335. ) ON [PRIMARY]
  336. GO
  337. /****** Object: Table [import].[MB Costunitcode Mapping] Script Date: 17.09.2018 17:27:09 ******/
  338. SET ANSI_NULLS ON
  339. GO
  340. SET QUOTED_IDENTIFIER ON
  341. GO
  342. CREATE TABLE [import].[MB_Costunitcode_Mapping](
  343. [timestamp] [binary](8) NOT NULL,
  344. [Main Area] [int] NOT NULL,
  345. [CARLO Product Posting Group] [varchar](10) NOT NULL,
  346. [CARLO Makecode] [varchar](10) NOT NULL,
  347. [CARLO Vehicle Class Code] [varchar](10) NOT NULL,
  348. [MB Costunitcode] [varchar](2) NOT NULL,
  349. [Client_DB] [varchar](50) NOT NULL,
  350. CONSTRAINT [MB Costunitcode Mapping$0] PRIMARY KEY CLUSTERED
  351. (
  352. [Main Area] ASC,
  353. [CARLO Product Posting Group] ASC,
  354. [CARLO Makecode] ASC,
  355. [CARLO Vehicle Class Code] ASC
  356. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  357. ) ON [PRIMARY]
  358. GO
  359. /****** Object: Table [import].[MB Distr_-channelcode Mapping] Script Date: 17.09.2018 17:27:09 ******/
  360. SET ANSI_NULLS ON
  361. GO
  362. SET QUOTED_IDENTIFIER ON
  363. GO
  364. CREATE TABLE [import].[MB_Distr_Channelcode_Mapping](
  365. [timestamp] [binary](8) NOT NULL,
  366. [CARLO Business Posting Group] [varchar](10) NOT NULL,
  367. [MB Distributionchannelcode] [varchar](2) NOT NULL,
  368. [Client_DB] [varchar](50) NOT NULL,
  369. CONSTRAINT [MB Distr_-channelcode Mapping$0] PRIMARY KEY CLUSTERED
  370. (
  371. [CARLO Business Posting Group] ASC
  372. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  373. ) ON [PRIMARY]
  374. GO
  375. /****** Object: Table [import].[MB Distributionchannel] Script Date: 17.09.2018 17:27:09 ******/
  376. SET ANSI_NULLS ON
  377. GO
  378. SET QUOTED_IDENTIFIER ON
  379. GO
  380. CREATE TABLE [import].[MB_Distributionchannel](
  381. [timestamp] [binary](8) NOT NULL,
  382. [Code] [varchar](2) NOT NULL,
  383. [Description] [varchar](100) NOT NULL,
  384. [Client_DB] [varchar](50) NOT NULL,
  385. CONSTRAINT [MB Distributionchannel$0] PRIMARY KEY CLUSTERED
  386. (
  387. [Code] ASC
  388. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  389. ) ON [PRIMARY]
  390. GO
  391. /****** Object: Table [import].[MB Location] Script Date: 17.09.2018 17:27:09 ******/
  392. SET ANSI_NULLS ON
  393. GO
  394. SET QUOTED_IDENTIFIER ON
  395. GO
  396. CREATE TABLE [import].[MB_Location](
  397. [timestamp] [binary](8) NOT NULL,
  398. [Code] [varchar](2) NOT NULL,
  399. [Description] [varchar](100) NOT NULL,
  400. [Client_DB] [varchar](50) NOT NULL,
  401. CONSTRAINT [MB Location$0] PRIMARY KEY CLUSTERED
  402. (
  403. [Code] ASC
  404. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  405. ) ON [PRIMARY]
  406. GO
  407. /****** Object: Table [import].[MB Locationcode Mapping] Script Date: 17.09.2018 17:27:09 ******/
  408. SET ANSI_NULLS ON
  409. GO
  410. SET QUOTED_IDENTIFIER ON
  411. GO
  412. CREATE TABLE [import].[MB_Locationcode_Mapping](
  413. [timestamp] [binary](8) NOT NULL,
  414. [Main Area] [int] NOT NULL,
  415. [CARLO Locationcode] [varchar](10) NOT NULL,
  416. [MB Locationcode] [varchar](2) NOT NULL,
  417. [Client_DB] [varchar](50) NOT NULL,
  418. CONSTRAINT [MB Locationcode Mapping$0] PRIMARY KEY CLUSTERED
  419. (
  420. [Main Area] ASC,
  421. [CARLO Locationcode] ASC
  422. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  423. ) ON [PRIMARY]
  424. GO
  425. /****** Object: Table [import].[MB Make] Script Date: 17.09.2018 17:27:09 ******/
  426. SET ANSI_NULLS ON
  427. GO
  428. SET QUOTED_IDENTIFIER ON
  429. GO
  430. CREATE TABLE [import].[MB_Make](
  431. [timestamp] [binary](8) NOT NULL,
  432. [Code] [varchar](2) NOT NULL,
  433. [Description] [varchar](100) NOT NULL,
  434. [Client_DB] [varchar](50) NOT NULL,
  435. CONSTRAINT [MB Make$0] PRIMARY KEY CLUSTERED
  436. (
  437. [Code] ASC
  438. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  439. ) ON [PRIMARY]
  440. GO
  441. /****** Object: Table [import].[MB Make KBA No_ Mapping] Script Date: 17.09.2018 17:27:09 ******/
  442. SET ANSI_NULLS ON
  443. GO
  444. SET QUOTED_IDENTIFIER ON
  445. GO
  446. CREATE TABLE [import].[MB_Make_KBA_No_Mapping](
  447. [timestamp] [binary](8) NOT NULL,
  448. [MB Makecode] [varchar](10) NOT NULL,
  449. [KBA Manufact_ No_] [varchar](10) NOT NULL,
  450. [HbvMasking] [varchar](10) NOT NULL,
  451. [FactMasking] [varchar](10) NOT NULL,
  452. [Client_DB] [varchar](50) NOT NULL,
  453. CONSTRAINT [MB Make KBA No_ Mapping$0] PRIMARY KEY CLUSTERED
  454. (
  455. [MB Makecode] ASC
  456. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  457. ) ON [PRIMARY]
  458. GO
  459. /****** Object: Table [import].[MB Makecode Mapping] Script Date: 17.09.2018 17:27:09 ******/
  460. SET ANSI_NULLS ON
  461. GO
  462. SET QUOTED_IDENTIFIER ON
  463. GO
  464. CREATE TABLE [import].[MB_Makecode_Mapping](
  465. [timestamp] [binary](8) NOT NULL,
  466. [Main Area] [int] NOT NULL,
  467. [CARLO Makecode] [varchar](10) NOT NULL,
  468. [Vehicle Type] [int] NOT NULL,
  469. [CARLO Branch Code] [varchar](10) NOT NULL,
  470. [MB Makecode] [varchar](2) NOT NULL,
  471. [Client_DB] [varchar](50) NOT NULL,
  472. CONSTRAINT [MB Makecode Mapping$0] PRIMARY KEY CLUSTERED
  473. (
  474. [Main Area] ASC,
  475. [CARLO Makecode] ASC,
  476. [Vehicle Type] ASC,
  477. [CARLO Branch Code] ASC
  478. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  479. ) ON [PRIMARY]
  480. GO
  481. /****** Object: Table [import].[MB Setup] Script Date: 17.09.2018 17:27:10 ******/
  482. SET ANSI_NULLS ON
  483. GO
  484. SET QUOTED_IDENTIFIER ON
  485. GO
  486. CREATE TABLE [import].[MB_Setup](
  487. [timestamp] [binary](8) NOT NULL,
  488. [Primary Key] [varchar](1) NOT NULL,
  489. [Kat_ Prüfung Plausibilität] [int] NOT NULL,
  490. [Kat_ Erm_ PKW_NFZ Differenzrg_] [int] NOT NULL,
  491. [Anz_ Stellen BKR Kontenrahmen] [int] NOT NULL,
  492. [Anz_ Stellen lok_ Kontenrahmen] [int] NOT NULL,
  493. [Client_DB] [varchar](50) NOT NULL,
  494. CONSTRAINT [MB Setup$0] PRIMARY KEY CLUSTERED
  495. (
  496. [Primary Key] ASC
  497. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  498. ) ON [PRIMARY]
  499. GO
  500. /****** Object: Table [import].[Modell Line Neu] Script Date: 17.09.2018 17:27:10 ******/
  501. SET ANSI_NULLS ON
  502. GO
  503. SET QUOTED_IDENTIFIER ON
  504. GO
  505. CREATE TABLE [import].[Modell_Line_Neu](
  506. [timestamp] [binary](8) NOT NULL,
  507. [Fgstnr1-9] [varchar](9) NOT NULL,
  508. [von Modelljahr] [int] NOT NULL,
  509. [bis Modelljahr] [int] NOT NULL,
  510. [GMUD Modellinie] [varchar](3) NOT NULL,
  511. [Aufbau] [varchar](3) NOT NULL,
  512. [Bezeichnung] [varchar](30) NOT NULL,
  513. [Client_DB] [varchar](50) NOT NULL,
  514. CONSTRAINT [Modell Line Neu$0] PRIMARY KEY CLUSTERED
  515. (
  516. [Fgstnr1-9] ASC,
  517. [von Modelljahr] ASC
  518. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  519. ) ON [PRIMARY]
  520. GO
  521. /****** Object: Table [import].[Modell-Aufbauten] Script Date: 17.09.2018 17:27:10 ******/
  522. SET ANSI_NULLS ON
  523. GO
  524. SET QUOTED_IDENTIFIER ON
  525. GO
  526. CREATE TABLE [import].[Modell_Aufbauten](
  527. [timestamp] [binary](8) NOT NULL,
  528. [Modellinie] [varchar](3) NOT NULL,
  529. [Aufbau] [varchar](3) NOT NULL,
  530. [Beschreibung] [varchar](50) NOT NULL,
  531. [Client_DB] [varchar](50) NOT NULL,
  532. CONSTRAINT [Modell-Aufbauten$0] PRIMARY KEY CLUSTERED
  533. (
  534. [Modellinie] ASC,
  535. [Aufbau] ASC
  536. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  537. ) ON [PRIMARY]
  538. GO
  539. /****** Object: Table [import].[Modellinien] Script Date: 17.09.2018 17:27:10 ******/
  540. SET ANSI_NULLS ON
  541. GO
  542. SET QUOTED_IDENTIFIER ON
  543. GO
  544. CREATE TABLE [import].[Modellinien](
  545. [timestamp] [binary](8) NOT NULL,
  546. [Modellinie] [varchar](3) NOT NULL,
  547. [Modelljahr von] [int] NOT NULL,
  548. [Modelljahr bis] [int] NOT NULL,
  549. [Beschreibung] [varchar](50) NOT NULL,
  550. [Modell] [varchar](20) NOT NULL,
  551. [Client_DB] [varchar](50) NOT NULL,
  552. CONSTRAINT [Modellinien$0] PRIMARY KEY CLUSTERED
  553. (
  554. [Modellinie] ASC,
  555. [Modelljahr von] ASC
  556. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  557. ) ON [PRIMARY]
  558. GO
  559. /****** Object: Table [import].[Model-Linien alt] Script Date: 17.09.2018 17:27:10 ******/
  560. SET ANSI_NULLS ON
  561. GO
  562. SET QUOTED_IDENTIFIER ON
  563. GO
  564. CREATE TABLE [import].[Model_Linien_alt](
  565. [timestamp] [binary](8) NOT NULL,
  566. [Fgstnr8-9] [varchar](2) NOT NULL,
  567. [von Modelljahr] [int] NOT NULL,
  568. [bis Modelljahr] [int] NOT NULL,
  569. [Cosco Modellinie] [varchar](3) NOT NULL,
  570. [GMUD Modelline] [varchar](3) NOT NULL,
  571. [GMUD Aufbau] [varchar](3) NOT NULL,
  572. [Bezeichnung] [varchar](30) NOT NULL,
  573. [Client_DB] [varchar](50) NOT NULL,
  574. CONSTRAINT [Model-Linien alt$0] PRIMARY KEY CLUSTERED
  575. (
  576. [Fgstnr8-9] ASC,
  577. [von Modelljahr] ASC
  578. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  579. ) ON [PRIMARY]
  580. GO
  581. /****** Object: Table [import].[Modelljahre] Script Date: 17.09.2018 17:27:10 ******/
  582. SET ANSI_NULLS ON
  583. GO
  584. SET QUOTED_IDENTIFIER ON
  585. GO
  586. CREATE TABLE [import].[Modelljahre](
  587. [timestamp] [binary](8) NOT NULL,
  588. [Code] [varchar](30) NOT NULL,
  589. [Beschreibung] [varchar](100) NOT NULL,
  590. [Client_DB] [varchar](50) NOT NULL,
  591. CONSTRAINT [Modelljahre$0] PRIMARY KEY CLUSTERED
  592. (
  593. [Code] ASC
  594. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  595. ) ON [PRIMARY]
  596. GO
  597. /****** Object: Table [import].[Produktklasse] Script Date: 17.09.2018 17:27:10 ******/
  598. SET ANSI_NULLS ON
  599. GO
  600. SET QUOTED_IDENTIFIER ON
  601. GO
  602. CREATE TABLE [import].[Produktklasse](
  603. [timestamp] [binary](8) NOT NULL,
  604. [Code] [varchar](10) NOT NULL,
  605. [Beschreibung] [varchar](30) NOT NULL,
  606. [Vertriebskennzeichen] [varchar](10) NOT NULL,
  607. [Client_DB] [varchar](50) NOT NULL,
  608. CONSTRAINT [Produktklasse$0] PRIMARY KEY CLUSTERED
  609. (
  610. [Code] ASC
  611. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  612. ) ON [PRIMARY]
  613. GO