Tables [dbo].[WebAccess]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)1
Created5:01:52 PM Tuesday, November 4, 2008
Last Modified3:46:14 PM Tuesday, November 18, 2014
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_WebAccess: PriKeyPriKeyint4
No
1 - 1
Foreign Keys fk_WebAccess_Profiles: [dbo].[Profiles].ProfileIDProfileIDint4
Yes
Hitsint4
Yes
Foreign Keys fk_WebAccess_WebUserType: [dbo].[WebUserType].UserTypeUserTypeint4
Yes
CompanyNamevarchar(30)30
Yes
Foreign Keys fk_WebAccess_Sysuser: [dbo].[Sysuser].SysuserPriKeyIndexes IX_WebAccess_SysuserPriKey: SysuserPriKeySysuserPriKeyint4
Yes
Indexes IX_WebAccess_UserID: UserIDUserIDvarchar(32)32
No
Passwordvarbinary(max)max
No
Indexes Indexes
NameColumnsUniqueFill Factor
Cluster Primary Key PK_WebAccess: PriKeyPK_WebAccessPriKey
Yes
80
IX_WebAccess_SysuserPriKeySysuserPriKey
Yes
IX_WebAccess_UserIDUserID
Yes
Foreign Keys Foreign Keys
NameColumns
fk_WebAccess_ProfilesProfileID->[dbo].[Profiles].[ProfileID]
fk_WebAccess_SysuserSysuserPriKey->[dbo].[Sysuser].[SysUserID]
fk_WebAccess_WebUserTypeUserType->[dbo].[WebUserType].[WebUserTypeID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[WebAccess]
(
[PriKey] [int] NOT NULL IDENTITY(1, 1),
[ProfileID] [int] NULL,
[Hits] [int] NULL,
[UserType] [int] NULL,
[CompanyName] [varchar] (30) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[SysuserPriKey] [int] NULL,
[UserID] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[Password] [varbinary] (max) NOT NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [dbo].[WebAccess] ADD CONSTRAINT [PK_WebAccess] PRIMARY KEY CLUSTERED  ([PriKey]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[WebAccess] ADD CONSTRAINT [IX_WebAccess_UserID] UNIQUE NONCLUSTERED  ([UserID]) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [IX_WebAccess_SysuserPriKey] ON [dbo].[WebAccess] ([SysuserPriKey]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[WebAccess] ADD CONSTRAINT [fk_WebAccess_Profiles] FOREIGN KEY ([ProfileID]) REFERENCES [dbo].[Profiles] ([ProfileID])
GO
ALTER TABLE [dbo].[WebAccess] ADD CONSTRAINT [fk_WebAccess_Sysuser] FOREIGN KEY ([SysuserPriKey]) REFERENCES [dbo].[Sysuser] ([SysUserID])
GO
ALTER TABLE [dbo].[WebAccess] ADD CONSTRAINT [fk_WebAccess_WebUserType] FOREIGN KEY ([UserType]) REFERENCES [dbo].[WebUserType] ([WebUserTypeID])
GO
GRANT SELECT ON  [dbo].[WebAccess] TO [MssExec]
GRANT INSERT ON  [dbo].[WebAccess] TO [MssExec]
GRANT DELETE ON  [dbo].[WebAccess] TO [MssExec]
GRANT UPDATE ON  [dbo].[WebAccess] TO [MssExec]
GO
Uses