snipped-for-privacy@gmail.com wrote:
Ok .. in the end of this message you found the standard script of supplier table of RMS v2.0
I have removed from the script the collation and the default constraint created for DEFAULT value .. All fields have a default value .. 0 for number.. '' for nvarchar fields..
The exceptions are: DBTimeStamp -> timestamp -> null -> used for rowversioning (managed by sql server) CustomDate1 -> null
....
do you have the script of your supplier table to compare with the standard?
cod
CREATE TABLE [dbo].[Supplier]( [Country] [nvarchar](20) DEFAULT (''), [HQID] [int] NOT NULL DEFAULT (0), [LastUpdated] [datetime] NOT NULL DEFAULT (getdate()), [State] [nvarchar](20) NOT NULL DEFAULT (''), [ID] [int] IDENTITY(1,1) NOT NULL, [SupplierName] [nvarchar](30) NOT NULL DEFAULT (''), [ContactName] [nvarchar](30) NOT NULL DEFAULT (''), [Address1] [nvarchar](30) NOT NULL DEFAULT (''), [Address2] [nvarchar](30) NOT NULL DEFAULT (''), [City] [nvarchar](30) NOT NULL DEFAULT (''), [Zip] [nvarchar](20) NOT NULL DEFAULT (''), [EmailAddress] [nvarchar](255) NOT NULL DEFAULT (''), [WebPageAddress] [nvarchar](255) NOT NULL DEFAULT (''), [Code] [nvarchar](17) NOT NULL DEFAULT (''), [DBTimeStamp] [timestamp] NULL, [AccountNumber] [nvarchar](20) NOT NULL DEFAULT (''), [TaxNumber] [nvarchar](20) NOT NULL DEFAULT (''), [CurrencyID] [int] NOT NULL DEFAULT (0), [PhoneNumber] [nvarchar](30) NOT NULL DEFAULT (''), [FaxNumber] [nvarchar](30) NOT NULL DEFAULT (''), [CustomText1] [nvarchar](30) NOT NULL DEFAULT (''), [CustomText2] [nvarchar](30) NOT NULL DEFAULT (''), [CustomText3] [nvarchar](30) NOT NULL DEFAULT (''), [CustomText4] [nvarchar](30) NOT NULL DEFAULT (''), [CustomText5] [nvarchar](30) NOT NULL DEFAULT (''), [CustomNumber1] [float] NOT NULL DEFAULT (0), [CustomNumber2] [float] NOT NULL DEFAULT (0), [CustomNumber3] [float] NOT NULL DEFAULT (0), [CustomNumber4] [float] NOT NULL DEFAULT (0), [CustomNumber5] [float] NOT NULL DEFAULT (0), [CustomDate1] [datetime] NULL, [CustomDate2] [datetime] NULL, [CustomDate3] [datetime] NULL, [CustomDate4] [datetime] NULL, [CustomDate5] [datetime] NULL, [Notes] [ntext] NOT NULL DEFAULT (''), [Terms] [nvarchar](50) NOT NULL DEFAULT (''), CONSTRAINT [PK_Supplier] PRIMARY KEY NONCLUSTERED ( [ID] ASC )WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY] ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]