Tables [dbo].[Profiles]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)8
Created4:57:08 PM Thursday, September 7, 2006
Last Modified8:53:29 AM Friday, December 7, 2018
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Cluster Primary Key PK_PROFILES: ProfileIDProfileIDint4
No
1 - 1
ProfileNamevarchar(25)25
No
ContactNamevarchar(30)30
Yes
Memovarchar(60)60
Yes
Foreign Keys FK_PROFILES_ACCOUNTS: [dbo].[Accounts].AcctPriKeyAcctPriKeyint4
No
Foreign Keys FK_Profiles_SecModules: [dbo].[SecModules].SecModulesFIDIndexes IX_Profiles_SecModules: SecModulesFIDSecModulesFIDint4
No
Inactivebit1
No
((0))
Indexes Indexes
NameColumnsUniqueFill Factor
Cluster Primary Key PK_PROFILES: ProfileIDPK_PROFILESProfileID
Yes
80
IX_Profiles_SecModulesSecModulesFID
Foreign Keys Foreign Keys
NameColumns
FK_PROFILES_ACCOUNTSAcctPriKey->[dbo].[Accounts].[AccountPriKey]
FK_Profiles_SecModulesSecModulesFID->[dbo].[SecModules].[ModulePriKey]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[Profiles]
(
[ProfileID] [int] NOT NULL IDENTITY(1, 1),
[ProfileName] [varchar] (25) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[ContactName] [varchar] (30) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Memo] [varchar] (60) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[AcctPriKey] [int] NOT NULL,
[SecModulesFID] [int] NOT NULL,
[Inactive] [bit] NOT NULL CONSTRAINT [DF_Tasks_Inactive] DEFAULT ((0))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[Profiles] ADD CONSTRAINT [PK_PROFILES] PRIMARY KEY CLUSTERED  ([ProfileID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_Profiles_SecModules] ON [dbo].[Profiles] ([SecModulesFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[Profiles] ADD CONSTRAINT [FK_PROFILES_ACCOUNTS] FOREIGN KEY ([AcctPriKey]) REFERENCES [dbo].[Accounts] ([AccountPriKey])
GO
ALTER TABLE [dbo].[Profiles] ADD CONSTRAINT [FK_Profiles_SecModules] FOREIGN KEY ([SecModulesFID]) REFERENCES [dbo].[SecModules] ([ModulePriKey])
GO
GRANT SELECT ON  [dbo].[Profiles] TO [MssExec]
GRANT INSERT ON  [dbo].[Profiles] TO [MssExec]
GRANT DELETE ON  [dbo].[Profiles] TO [MssExec]
GRANT UPDATE ON  [dbo].[Profiles] TO [MssExec]
GO
Uses
Used By