Just some advice on how to create a 'compound primary key' in slq2005 please
My scheme is currently:
CREATE TABLE [dbo].[DS_Shipment](
[shipmentID] [int] IDENTITY(1,1) NOT NULL,
[invoiceID] [int] NULL,
[shipmentdate] [smalldatetime] NULL,
[shipcode] [nchar](10) NULL,
[notes] [nvarchar](255) NULL,
[trackingnumber] [nvarchar](20) NULL,
CONSTRAINT [PK_DS_Shipment] PRIMARY KEY CLUSTERED
(
Thanks
Lez
(
[shipmentID] [int] IDENTITY(1,1) NOT NULL,
[invoiceID] [int] NOT NULL,
[shipmentdate] [smalldatetime] NULL,
[shipcode] [nchar](10) NULL,
[notes] [nvarchar](255) NULL,
[trackingnumber] [nvarchar](20) NULL,
CONSTRAINT [PK_DS_Shipment] PRIMARY KEY ([shipmentID],[invoiceID])
)
"Lez" <lez_nospam_@/noSpam\hotmail.co.uk> wrote in message
news:4EEA7078-933E-4E76...@microsoft.com...
Thanks for that
Lez
"Uri Dimant" <ur...@iscar.co.il> wrote in message
news:OsOV9J6W...@TK2MSFTNGP02.phx.gbl...