Tables [dbo].[LocServXtraStopMap]
Properties
PropertyValue
Row Count (~)0
Created7:27:27 AM Friday, December 7, 2018
Last Modified9:06:54 AM Friday, December 7, 2018
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_LocServXtraStopMap: LocServXtraStopMapIDLocServXtraStopMapIDint4
No
1 - 1
Foreign Keys FK_LocServXtraStopMap_LocServ: [dbo].[LocServ].LocServFIDIndexes IX_LocServXtraStopMap_LocServFID_XtraStopFID: LocServFID\XtraStopFIDIndexes IX_LocServXtraStopMap_XtraStopFID: LocServFID\XtraStopFIDLocServFIDint4
No
Foreign Keys FK_LocServXtraStopMap_XtraStop: [dbo].[XtraStop].XtraStopFIDIndexes IX_LocServXtraStopMap_LocServFID_XtraStopFID: LocServFID\XtraStopFIDIndexes IX_LocServXtraStopMap_XtraStopFID: LocServFID\XtraStopFIDXtraStopFIDint4
No
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_LocServXtraStopMap: LocServXtraStopMapIDPK_LocServXtraStopMapLocServXtraStopMapID
Yes
IX_LocServXtraStopMap_LocServFID_XtraStopFIDLocServFID, XtraStopFID
Yes
IX_LocServXtraStopMap_XtraStopFIDLocServFID, XtraStopFID
Foreign Keys Foreign Keys
NameDeleteColumns
FK_LocServXtraStopMap_LocServLocServFID->[dbo].[LocServ].[PriKey]
FK_LocServXtraStopMap_XtraStopCascadeXtraStopFID->[dbo].[XtraStop].[PriKey]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[LocServXtraStopMap]
(
[LocServXtraStopMapID] [int] NOT NULL IDENTITY(1, 1),
[LocServFID] [int] NOT NULL,
[XtraStopFID] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[LocServXtraStopMap] ADD CONSTRAINT [PK_LocServXtraStopMap] PRIMARY KEY CLUSTERED  ([LocServXtraStopMapID]) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [IX_LocServXtraStopMap_LocServFID_XtraStopFID] ON [dbo].[LocServXtraStopMap] ([LocServFID], [XtraStopFID]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_LocServXtraStopMap_XtraStopFID] ON [dbo].[LocServXtraStopMap] ([XtraStopFID]) INCLUDE ([LocServFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[LocServXtraStopMap] ADD CONSTRAINT [FK_LocServXtraStopMap_LocServ] FOREIGN KEY ([LocServFID]) REFERENCES [dbo].[LocServ] ([PriKey])
GO
ALTER TABLE [dbo].[LocServXtraStopMap] ADD CONSTRAINT [FK_LocServXtraStopMap_XtraStop] FOREIGN KEY ([XtraStopFID]) REFERENCES [dbo].[XtraStop] ([PriKey]) ON DELETE CASCADE
GO
GRANT SELECT ON  [dbo].[LocServXtraStopMap] TO [MssExec]
GRANT INSERT ON  [dbo].[LocServXtraStopMap] TO [MssExec]
GRANT DELETE ON  [dbo].[LocServXtraStopMap] TO [MssExec]
GRANT UPDATE ON  [dbo].[LocServXtraStopMap] TO [MssExec]
GO
Uses