nord
Posting Yak Master
126 Posts |
Posted - 2012-05-14 : 16:11:54
|
--/****** Object: Table [dbo].[HZ_vSalesInboundErrors] Script Date: 05/10/2012 08:25:19 ******/IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[HZ_vSalesInboundErrors]') AND type in (N'U'))DROP view dbo.HZ_vSalesInboundErrorselse/****** Object: Table [dbo].[STA_IB_SalesDownloadHZ] Script Date: 05/10/2012 08:25:19 ******/IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[STA_IB_SalesDownloadHZ]') AND type in (N'U'))alter table dbo.STA_IB_SalesDownloadHZalter column STA_IBSDHZ_LayawayNumber bigintelsebeginCREATE TABLE [dbo].[STA_IB_SalesDownloadHZ]( [STA_IBSDHZ_SequenceNumber] [int] IDENTITY(1,1) NOT NULL, [STA_IBSDHZ_SessionNumber] [int] NOT NULL, [STA_IBSDHZ_BrandName] [varchar](100) NULL, [STA_IBSDHZ_FileName] [varchar](100) NULL, [STA_IBSDHZ_Linenumber] [int] NOT NULL, [STA_IBSDHZ_Tsid] [datetime] NOT NULL, [STA_IBSDHZ_Status] [char](1) NULL, [STA_IBSDHZ_StoreCode] [varchar](10) NULL, [STA_IBSDHZ_RegisterNumber] [char](3) NULL, [STA_IBSDHZ_TransactionNumber] [int] NULL, [STA_IBSDHZ_TransactionDate] [char](8) NULL, [STA_IBSDHZ_TransactionTime] [char](6) NULL, [STA_IBSDHZ_TransactionSequenceNumber] [int] NULL, [STA_IBSDHZ_LayawayNumber] [bigint] NULL, [STA_IBSDHZ_LayawayPaidtoDate] [numeric](12, 2) NULL, [STA_IBSDHZ_LayawayBalanceDue] [numeric](12, 2) NULL, [STA_IBSDHZ_ReferenceStoreCode] [varchar](10) NULL, [STA_IBSDHZ_HeaderType] [varchar](10) NULL, [STA_IBSDHZ_OpenCloseRegisterSessionNumber] [int] NULL, [STA_IBSDHZ_StaffSalespersonCode] [varchar](6) NULL, [STA_IBSDHZ_LineType] [varchar](10) NULL, [STA_IBSDHZ_ItemType] [varchar](20) NULL, [STA_IBSDHZ_ProductCode] [varchar](25) NULL, [STA_IBSDHZ_Quantity] [numeric](9, 2) NULL, [STA_IBSDHZ_UnitPrice] [numeric](12, 2) NULL, [STA_IBSDHZ_ClientCode] [varchar](20) NULL, [STA_IBSDHZ_ClientName] [varchar](40) NULL, [STA_IBSDHZ_ClientFirstName] [varchar](30) NULL, [STA_IBSDHZ_ClientTelephone] [varchar](13) NULL, [STA_IBSDHZ_LayawaySequenceNumber] [int] NULL, [STA_IBSDHZ_Ref_TransNum] [int] NULL, [STA_IBSDHZ_Ref_TransactionDate] [datetime] NULL, [STA_IBSDHZ_RetailPrice] [numeric](12, 2) NULL, [STA_IBSDHZ_TaxRegionID] [int] NULL, [STA_IBSDHZ_TaxCategoryID] [int] NULL, [STA_IBSDHZ_TaxAmount] [numeric](16, 6) NULL, [STA_IBSDHZ_RCPT_NOTE1] [varchar](50) NULL, CONSTRAINT [pk_sta_ib_salesdownloadhz] PRIMARY KEY NONCLUSTERED ( [STA_IBSDHZ_SequenceNumber] ASC)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]) ON [PRIMARY]ALTER TABLE [dbo].[STA_IB_SalesDownloadHZ] ADD CONSTRAINT [DF__STA_IBSDHZ__4560CAFB] DEFAULT (getdate()) FOR [STA_IBSDHZ_Tsid]ALTER TABLE [dbo].[STA_IB_SalesDownloadHZ] ADD CONSTRAINT [DF__STA_IBSDHZ__4654EF34] DEFAULT ('N') FOR [STA_IBSDHZ_Status]enderrors:Msg 5074, Level 16, State 1, Line 8The object 'HZ_vSalesInboundErrors' is dependent on column 'STA_IBSDHZ_LayawayNumber'.Msg 4922, Level 16, State 9, Line 8ALTER TABLE ALTER COLUMN STA_IBSDHZ_LayawayNumber failed because one or more objects access this column.Thanks |
|
|