Tables [dbo].[SysuserAddress]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)39
Created4:57:08 PM Thursday, September 7, 2006
Last Modified12:32:37 PM Monday, August 4, 2014
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_SysuserAddress: SysuserAddressIDSysuserAddressIDint4
No
1 - 1
Foreign Keys FK_SysuserAddress_Sysuser: [dbo].[Sysuser].SysuserFIDIndexes IX_SysuserAddress_AddressType: SysuserFID\AddressTypeFIDSysuserFIDint4
No
Foreign Keys FK_SysuserAddress_AddressType: [dbo].[AddressType].AddressTypeFIDCheck Constraints CK_SysUserAddress_AddressType : ([dbo].[GetAddressTypeName]([AddressTypeFID])='Main')Indexes IX_SysuserAddress_AddressType: SysuserFID\AddressTypeFIDAddressTypeFIDint4
No
Address1[dbo].[Address]256
Yes
Address2[dbo].[Address]256
Yes
Address3[dbo].[Address]256
Yes
City[dbo].[AddressCity]26
Yes
State[dbo].[AddressState]2
Yes
PostalCode[dbo].[AddressPostalCode]10
Yes
Foreign Keys FK_SysuserAddress_CountryCodeStandard: [dbo].[CountryCodeStandard].CountryCodeStandardFIDCountryCodeStandardFIDint4
Yes
Indexes Indexes
NameColumnsUniqueFill Factor
Primary Key PK_SysuserAddress: SysuserAddressIDPK_SysuserAddressSysuserAddressID
Yes
80
IX_SysuserAddress_AddressTypeSysuserFID, AddressTypeFID
Yes
80
Check Constraints Check Constraints
NameOn ColumnConstraint
CK_SysUserAddress_AddressTypeAddressTypeFID([dbo].[GetAddressTypeName]([AddressTypeFID])='Main')
Foreign Keys Foreign Keys
NameDeleteColumns
FK_SysuserAddress_AddressTypeAddressTypeFID->[dbo].[AddressType].[AddressTypeID]
FK_SysuserAddress_CountryCodeStandardCountryCodeStandardFID->[dbo].[CountryCodeStandard].[CountryCodeStandardID]
FK_SysuserAddress_SysuserCascadeSysuserFID->[dbo].[Sysuser].[SysUserID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[SysuserAddress]
(
[SysuserAddressID] [int] NOT NULL IDENTITY(1, 1),
[SysuserFID] [int] NOT NULL,
[AddressTypeFID] [int] NOT NULL,
[Address1] [dbo].[Address] NULL,
[Address2] [dbo].[Address] NULL,
[Address3] [dbo].[Address] NULL,
[City] [dbo].[AddressCity] NULL,
[State] [dbo].[AddressState] NULL,
[PostalCode] [dbo].[AddressPostalCode] NULL,
[CountryCodeStandardFID] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[SysuserAddress] ADD CONSTRAINT [CK_SysUserAddress_AddressType] CHECK (([dbo].[GetAddressTypeName]([AddressTypeFID])='Main'))
GO
ALTER TABLE [dbo].[SysuserAddress] ADD CONSTRAINT [PK_SysuserAddress] PRIMARY KEY NONCLUSTERED  ([SysuserAddressID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[SysuserAddress] ADD CONSTRAINT [IX_SysuserAddress_AddressType] UNIQUE NONCLUSTERED  ([SysuserFID], [AddressTypeFID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[SysuserAddress] ADD CONSTRAINT [FK_SysuserAddress_AddressType] FOREIGN KEY ([AddressTypeFID]) REFERENCES [dbo].[AddressType] ([AddressTypeID])
GO
ALTER TABLE [dbo].[SysuserAddress] ADD CONSTRAINT [FK_SysuserAddress_CountryCodeStandard] FOREIGN KEY ([CountryCodeStandardFID]) REFERENCES [dbo].[CountryCodeStandard] ([CountryCodeStandardID])
GO
ALTER TABLE [dbo].[SysuserAddress] ADD CONSTRAINT [FK_SysuserAddress_Sysuser] FOREIGN KEY ([SysuserFID]) REFERENCES [dbo].[Sysuser] ([SysUserID]) ON DELETE CASCADE
GO
GRANT SELECT ON  [dbo].[SysuserAddress] TO [MssExec]
GRANT INSERT ON  [dbo].[SysuserAddress] TO [MssExec]
GRANT DELETE ON  [dbo].[SysuserAddress] TO [MssExec]
GRANT UPDATE ON  [dbo].[SysuserAddress] TO [MssExec]
GO
Uses