CREATE TABLE [dbo].[tartikel] (
[kArtikel] bigint NOT NULL,
[cArtNr] varchar(30) COLLATE Latin1_General_CI_AS NULL,
[cName] varchar(255) COLLATE Latin1_General_CI_AS NULL,
[cBeschreibung] text COLLATE Latin1_General_CI_AS NULL,
[fVKBrutto] real NULL,
[fVKNetto] real NULL,
[fUVP] real NULL,
[cAnmerkung] text COLLATE Latin1_General_CI_AS NULL,
[cPreisliste] char(1) COLLATE Latin1_General_CI_AS NULL,
[cAktiv] char(1) COLLATE Latin1_General_CI_AS NULL,
[nLagerbestand] real NULL,
[fMwSt] real NULL,
[cEinheit] varchar(10) COLLATE Latin1_General_CI_AS NULL,
[nMindestbestellmaenge] int NULL,
[cBarcode] varchar(255) COLLATE Latin1_General_CI_AS NULL,
[cErloeskonto] varchar(15) COLLATE Latin1_General_CI_AS NULL,
[fVKHaendlerBrutto] real NULL,
[fVKHaendlerNetto] real NULL,
[cTopArtikel] char(1) COLLATE Latin1_General_CI_AS NULL,
[cInet] char(1) COLLATE Latin1_General_CI_AS NULL,
[cDelInet] char(1) COLLATE Latin1_General_CI_AS NULL,
[fGewicht] real NULL,
[cNeu] char(1) COLLATE Latin1_General_CI_AS NULL,
[cKurzBeschreibung] varchar(4255) COLLATE Latin1_General_CI_AS NULL,
[cLagerArtikel] char(1) COLLATE Latin1_General_CI_AS NULL,
[cTeilbar] char(1) COLLATE Latin1_General_CI_AS NULL,
[cLagerAktiv] char(1) COLLATE Latin1_General_CI_AS NULL,
[cLagerKleinerNull] char(1) COLLATE Latin1_General_CI_AS NULL,
[nMidestbestand] int NULL,
[fEKNetto] real NULL,
[cHersteller] varchar(255) COLLATE Latin1_General_CI_AS NULL,
[fEbayPreis] real NULL,
[cLagerVariation] char(1) COLLATE Latin1_General_CI_AS NULL,
[nDelete] tinyint DEFAULT 0 NULL,
PRIMARY KEY CLUSTERED ([kArtikel])
)
ON [PRIMARY]
TEXTIMAGE_ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_ArtikelName] ON [dbo].[tartikel]
([cName])
ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_Artikelnr] ON [dbo].[tartikel]
([cArtNr])
ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_cActive] ON [dbo].[tartikel]
([cAktiv])
ON [PRIMARY]
GO