Tables [dbo].[AccountProfilePreset]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created8:20:47 AM Friday, December 7, 2018
Last Modified9:02:42 AM Friday, December 7, 2018
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_AccountProfilePreset: AccountProfilePresetIDAccountProfilePresetIDint4
No
1 - 1
Foreign Keys FK_AccountProfilePreset_AccountProfile: [dbo].[AccountProfiles].AccountProfileFIDIndexes IX_AccountProfilePreset_AccountProfileFID_Name: AccountProfileFID\NameAccountProfileFIDint4
No
Indexes IX_AccountProfilePreset_AccountProfileFID_Name: AccountProfileFID\NameNamevarchar(100)100
No
Countyvarchar(32)32
Yes
Foreign Keys FK_AccountProfilePreset_AddressLocationType: [dbo].[AddressLocationType].AddressLocationTypeFIDAddressLocationTypeFIDint4
Yes
Consignvarchar(50)50
Yes
ConsignContactvarchar(50)50
Yes
Foreign Keys FK_AccountProfilePreset_BuildingFID: [dbo].[Buildings].BuildingFIDBuildingFIDint4
Yes
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_AccountProfilePreset: AccountProfilePresetIDPK_AccountProfilePresetAccountProfilePresetID
Yes
IX_AccountProfilePreset_AccountProfileFID_NameAccountProfileFID, Name
Yes
Foreign Keys Foreign Keys
NameDeleteColumns
FK_AccountProfilePreset_AccountProfileCascadeAccountProfileFID->[dbo].[AccountProfiles].[AccountProfileID]
FK_AccountProfilePreset_AddressLocationTypeAddressLocationTypeFID->[dbo].[AddressLocationType].[AddressLocationTypeID]
FK_AccountProfilePreset_BuildingFIDSetNullBuildingFID->[dbo].[Buildings].[BuildingID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[AccountProfilePreset]
(
[AccountProfilePresetID] [int] NOT NULL IDENTITY(1, 1),
[AccountProfileFID] [int] NOT NULL,
[Name] [varchar] (100) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[County] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[AddressLocationTypeFID] [int] NULL,
[Consign] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[ConsignContact] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[BuildingFID] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[AccountProfilePreset] ADD CONSTRAINT [PK_AccountProfilePreset] PRIMARY KEY CLUSTERED  ([AccountProfilePresetID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[AccountProfilePreset] ADD CONSTRAINT [IX_AccountProfilePreset_AccountProfileFID_Name] UNIQUE NONCLUSTERED  ([AccountProfileFID], [Name]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[AccountProfilePreset] ADD CONSTRAINT [FK_AccountProfilePreset_AccountProfile] FOREIGN KEY ([AccountProfileFID]) REFERENCES [dbo].[AccountProfiles] ([AccountProfileID]) ON DELETE CASCADE
GO
ALTER TABLE [dbo].[AccountProfilePreset] ADD CONSTRAINT [FK_AccountProfilePreset_AddressLocationType] FOREIGN KEY ([AddressLocationTypeFID]) REFERENCES [dbo].[AddressLocationType] ([AddressLocationTypeID])
GO
ALTER TABLE [dbo].[AccountProfilePreset] ADD CONSTRAINT [FK_AccountProfilePreset_BuildingFID] FOREIGN KEY ([BuildingFID]) REFERENCES [dbo].[Buildings] ([BuildingID]) ON DELETE SET NULL
GO
GRANT SELECT ON  [dbo].[AccountProfilePreset] TO [MssExec]
GRANT INSERT ON  [dbo].[AccountProfilePreset] TO [MssExec]
GRANT DELETE ON  [dbo].[AccountProfilePreset] TO [MssExec]
GRANT UPDATE ON  [dbo].[AccountProfilePreset] TO [MssExec]
GO
Uses
Used By