Tables [dbo].[StoresFixtures]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created4:57:08 PM Thursday, September 7, 2006
Last Modified11:13:43 AM Monday, August 19, 2013
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_StoresFixtures: StoresFixturesIDStoresFixturesIDint4
No
1 - 1
Foreign Keys FK_StoresFixtures_Jobs: [dbo].[Jobs].JobsIDJobsIDint4
No
Foreign Keys FK_StoresFixtures_FixtureTypes: [dbo].[FixtureTypes].FixtureTypesIDFixtureTypesIDint4
No
Quantitydecimal(18,0)9
Yes
Installedvarchar(1)1
Yes
DeliveredToStorevarchar(1)1
Yes
FixtureDamagevarchar(1)1
Yes
ActionTakenvarchar(50)50
Yes
InstallationChargemoney8
Yes
Indexes Indexes
NameColumnsUniqueFill Factor
Cluster Primary Key PK_StoresFixtures: StoresFixturesIDPK_StoresFixturesStoresFixturesID
Yes
80
Foreign Keys Foreign Keys
NameColumns
FK_StoresFixtures_FixtureTypesFixtureTypesID->[dbo].[FixtureTypes].[FixtureTypesID]
FK_StoresFixtures_JobsJobsID->[dbo].[Jobs].[JobsID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[StoresFixtures]
(
[StoresFixturesID] [int] NOT NULL IDENTITY(1, 1),
[JobsID] [int] NOT NULL,
[FixtureTypesID] [int] NOT NULL,
[Quantity] [decimal] (18, 0) NULL,
[Installed] [varchar] (1) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[DeliveredToStore] [varchar] (1) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[FixtureDamage] [varchar] (1) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[ActionTaken] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[InstallationCharge] [money] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[StoresFixtures] ADD CONSTRAINT [PK_StoresFixtures] PRIMARY KEY CLUSTERED  ([StoresFixturesID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[StoresFixtures] ADD CONSTRAINT [FK_StoresFixtures_FixtureTypes] FOREIGN KEY ([FixtureTypesID]) REFERENCES [dbo].[FixtureTypes] ([FixtureTypesID])
GO
ALTER TABLE [dbo].[StoresFixtures] ADD CONSTRAINT [FK_StoresFixtures_Jobs] FOREIGN KEY ([JobsID]) REFERENCES [dbo].[Jobs] ([JobsID])
GO
GRANT SELECT ON  [dbo].[StoresFixtures] TO [MssExec]
GRANT INSERT ON  [dbo].[StoresFixtures] TO [MssExec]
GRANT DELETE ON  [dbo].[StoresFixtures] TO [MssExec]
GRANT UPDATE ON  [dbo].[StoresFixtures] TO [MssExec]
GO
Uses