SQL
USE [PrintMonitor]
GO
/****** Object:  Table [dbo].[Print Job Events]    Script Date: 10/15/2008 21:28:36 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Print Job Events](
	[Printer Id] [numeric](18, 0) NOT NULL,
	[Printer Reboot Count] [int] NOT NULL CONSTRAINT [DF_Print Job Events_Printer Reboot Count]  DEFAULT ((0)),
	[Job Id] [int] NOT NULL,
	[Event] [numeric](18, 0) NOT NULL,
	[Submitted] [smalldatetime] NOT NULL,
	[Paused] [bit] NOT NULL,
	[Deleted] [bit] NOT NULL,
	[Deleting] [bit] NOT NULL,
	[Printed] [bit] NOT NULL,
	[Printing] [bit] NOT NULL,
	[Offline] [bit] NOT NULL,
	[Paper Out] [bit] NOT NULL,
	[User Intervention Required] [bit] NOT NULL,
	[Position] [numeric](18, 0) NOT NULL,
	[Pages Printed] [numeric](18, 0) NOT NULL CONSTRAINT [DF_Print Job Events_Pages Printed]  DEFAULT ((0)),
	[Queued Time] [int] NULL,
	[Job Size] [int] NULL,
 CONSTRAINT [PK_Print Job Events] PRIMARY KEY NONCLUSTERED 
(
	[Printer Id] ASC,
	[Printer Reboot Count] ASC,
	[Job Id] ASC,
	[Event] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) 
ON [PRIMARY]
) ON [PRIMARY]

Last edited Oct 15, 2008 at 8:29 PM by Merrion, version 1

Comments

No comments yet.