Tables [dbo].[WorkTickets]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)11300
Created4:57:08 PM Thursday, September 7, 2006
Last Modified9:35:19 AM Friday, December 7, 2018
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_WorkTickets: WorkTicketIDWorkTicketIDint4
No
1 - 1
Foreign Keys FK_WorkTickets_ORDERS: [dbo].[Orders].OrdersPriKeyOrdersPriKeyint4
No
Foreign Keys FK_WorkTickets_LOCSERV: [dbo].[LocServ].LocServPriKeyLocServPriKeyint4
No
Indexes IX_WorkTickets_WorkTicketNumber: WorkTicketNumberWorkTicketNumbervarchar(32)32
Yes
Indexes Indexes
NameColumnsUniqueFill Factor
Cluster Primary Key PK_WorkTickets: WorkTicketIDPK_WorkTicketsWorkTicketID
Yes
80
IX_WorkTickets_WorkTicketNumberWorkTicketNumber
Foreign Keys Foreign Keys
NameColumns
FK_WorkTickets_LOCSERVLocServPriKey->[dbo].[LocServ].[PriKey]
FK_WorkTickets_ORDERSOrdersPriKey->[dbo].[Orders].[PriKey]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[WorkTickets]
(
[WorkTicketID] [int] NOT NULL IDENTITY(1, 1),
[OrdersPriKey] [int] NOT NULL,
[LocServPriKey] [int] NOT NULL,
[WorkTicketNumber] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[WorkTickets] ADD CONSTRAINT [PK_WorkTickets] PRIMARY KEY CLUSTERED  ([WorkTicketID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_WorkTickets_WorkTicketNumber] ON [dbo].[WorkTickets] ([WorkTicketNumber]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[WorkTickets] ADD CONSTRAINT [FK_WorkTickets_LOCSERV] FOREIGN KEY ([LocServPriKey]) REFERENCES [dbo].[LocServ] ([PriKey])
GO
ALTER TABLE [dbo].[WorkTickets] ADD CONSTRAINT [FK_WorkTickets_ORDERS] FOREIGN KEY ([OrdersPriKey]) REFERENCES [dbo].[Orders] ([PriKey])
GO
GRANT SELECT ON  [dbo].[WorkTickets] TO [MssExec]
GRANT INSERT ON  [dbo].[WorkTickets] TO [MssExec]
GRANT DELETE ON  [dbo].[WorkTickets] TO [MssExec]
GRANT UPDATE ON  [dbo].[WorkTickets] TO [MssExec]
GO
Uses
Used By