Tables [dbo].[CapacityBucket]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created9:42:32 AM Friday, December 7, 2018
Last Modified9:42:33 AM Friday, December 7, 2018
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_CapacityBucket: CapacityBucketIDCapacityBucketIDint4
No
1 - 1
Indexes IX_CapacityBucket_BucketName: BucketNameBucketNamevarchar(64)64
No
Foreign Keys FK_CapacityBucket_CapacityBucketType: [dbo].[CapacityBucketType].CapacityBucketTypeFIDIndexes IX_CapacityBucket_CapacityBucketTypeFID: CapacityBucketTypeFIDCapacityBucketTypeFIDint4
No
SortOrderint4
No
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_CapacityBucket: CapacityBucketIDPK_CapacityBucketCapacityBucketID
Yes
IX_CapacityBucket_BucketNameBucketName
Yes
IX_CapacityBucket_CapacityBucketTypeFIDCapacityBucketTypeFID
Foreign Keys Foreign Keys
NameColumns
FK_CapacityBucket_CapacityBucketTypeCapacityBucketTypeFID->[dbo].[CapacityBucketType].[CapacityBucketTypeID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[CapacityBucket]
(
[CapacityBucketID] [int] NOT NULL IDENTITY(1, 1),
[BucketName] [varchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[CapacityBucketTypeFID] [int] NOT NULL,
[SortOrder] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[CapacityBucket] ADD CONSTRAINT [PK_CapacityBucket] PRIMARY KEY CLUSTERED  ([CapacityBucketID]) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [IX_CapacityBucket_BucketName] ON [dbo].[CapacityBucket] ([BucketName]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_CapacityBucket_CapacityBucketTypeFID] ON [dbo].[CapacityBucket] ([CapacityBucketTypeFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[CapacityBucket] ADD CONSTRAINT [FK_CapacityBucket_CapacityBucketType] FOREIGN KEY ([CapacityBucketTypeFID]) REFERENCES [dbo].[CapacityBucketType] ([CapacityBucketTypeID])
GO
GRANT SELECT ON  [dbo].[CapacityBucket] TO [MssExec]
GRANT INSERT ON  [dbo].[CapacityBucket] TO [MssExec]
GRANT DELETE ON  [dbo].[CapacityBucket] TO [MssExec]
GRANT UPDATE ON  [dbo].[CapacityBucket] TO [MssExec]
GO
Uses
Used By