USE [db_name]
GO
/****** Object: Table [dbo].[Table_Print_Log] Script Date: 10/06/2011 16:22:48 ******/
IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[FinalInpectionLable_Print_Log]') AND type in (N'U'))
DROP TABLE [dbo].[Table_Print_Log]
GO
USE [db_name]
GO
/****** Object: Table [dbo].[Table_Print_Log] Script Date: 10/06/2011 16:22:48 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Table_Print_Log](
[id] [bigint] identity(1,1) NOT NULL,
[date] [nchar](10) NOT NULL,
[lot] [nvarchar](50) NOT NULL,
[lot_controlled] [bit] NOT NULL,
[item] [nvarchar](50) NOT NULL,
[printdate] [datetime] NOT NULL,
[username] [nvarchar](50) NOT NULL,
CONSTRAINT [PK_Table_Print_Log] PRIMARY KEY CLUSTERED
(
[id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO