Tables [dbo].[Trips]
Properties
PropertyValue
Row Count (~)2259
Created4:57:08 PM Thursday, September 7, 2006
Last Modified4:02:11 PM Tuesday, May 26, 2015
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Cluster Primary Key PK_Trips: PriKeyPriKeyint4
No
1 - 1
TripNoint4
No
Foreign Keys FK_Trips_Sysuser: [dbo].[Sysuser].DriverEmpNoIndexes IX_Trips_DriverEmpNo: DriverEmpNoDriverEmpNoint4
No
Completebit1
No
((0))
Indexes Indexes
NameColumnsUniqueFill Factor
Cluster Primary Key PK_Trips: PriKeyPK_TripsPriKey
Yes
80
IX_Trips_DriverEmpNoDriverEmpNo
Foreign Keys Foreign Keys
NameColumns
FK_Trips_SysuserDriverEmpNo->[dbo].[Sysuser].[SysUserID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[Trips]
(
[PriKey] [int] NOT NULL IDENTITY(1, 1),
[TripNo] [int] NOT NULL,
[DriverEmpNo] [int] NOT NULL,
[Complete] [bit] NOT NULL CONSTRAINT [DF_Trips_Complete] DEFAULT ((0))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[Trips] ADD CONSTRAINT [PK_Trips] PRIMARY KEY CLUSTERED  ([PriKey]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_Trips_DriverEmpNo] ON [dbo].[Trips] ([DriverEmpNo]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[Trips] ADD CONSTRAINT [FK_Trips_Sysuser] FOREIGN KEY ([DriverEmpNo]) REFERENCES [dbo].[Sysuser] ([SysUserID])
GO
GRANT SELECT ON  [dbo].[Trips] TO [MssExec]
GRANT INSERT ON  [dbo].[Trips] TO [MssExec]
GRANT DELETE ON  [dbo].[Trips] TO [MssExec]
GRANT UPDATE ON  [dbo].[Trips] TO [MssExec]
GO
Uses
Used By