Tables [dbo].[Buildings]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created9:02:42 AM Friday, December 7, 2018
Last Modified9:20:46 AM Friday, December 7, 2018
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_Buildings: BuildingIDBuildingIDint4
No
1 - 1
Descriptionvarchar(64)64
No
CrossStreetvarchar(1024)1024
Yes
ServiceEntrancevarchar(1024)1024
Yes
SiteNotevarchar(1024)1024
Yes
Foreign Keys FK_Buildings_AddressLocationType: [dbo].[AddressLocationType].AddressLocationTypeFIDAddressLocationTypeFIDint4
Yes
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_Buildings: BuildingIDPK_BuildingsBuildingID
Yes
Foreign Keys Foreign Keys
NameColumns
FK_Buildings_AddressLocationTypeAddressLocationTypeFID->[dbo].[AddressLocationType].[AddressLocationTypeID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[Buildings]
(
[BuildingID] [int] NOT NULL IDENTITY(1, 1),
[Description] [varchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[CrossStreet] [varchar] (1024) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[ServiceEntrance] [varchar] (1024) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[SiteNote] [varchar] (1024) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[AddressLocationTypeFID] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[Buildings] ADD CONSTRAINT [PK_Buildings] PRIMARY KEY CLUSTERED  ([BuildingID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[Buildings] ADD CONSTRAINT [FK_Buildings_AddressLocationType] FOREIGN KEY ([AddressLocationTypeFID]) REFERENCES [dbo].[AddressLocationType] ([AddressLocationTypeID])
GO
GRANT SELECT ON  [dbo].[Buildings] TO [MssExec]
GRANT INSERT ON  [dbo].[Buildings] TO [MssExec]
GRANT DELETE ON  [dbo].[Buildings] TO [MssExec]
GRANT UPDATE ON  [dbo].[Buildings] TO [MssExec]
GO
Uses
Used By