Tables [dbo].[RM00102]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)1
Created4:57:08 PM Thursday, September 7, 2006
Last Modified11:13:37 AM Monday, August 19, 2013
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_RM00102: CUSTNMBR\ADRSCODECUSTNMBRchar(15)15
No
Cluster Primary Key PK_RM00102: CUSTNMBR\ADRSCODEADRSCODEchar(15)15
No
SLPRSNIDchar(15)15
No
UPSZONEchar(3)3
No
SHIPMTHDchar(15)15
No
TAXSCHIDchar(15)15
No
CNTCPRSNchar(61)61
No
ADDRESS1char(61)61
No
ADDRESS2char(61)61
No
ADDRESS3char(61)61
No
COUNTRYchar(61)61
No
CITYchar(35)35
No
STATEchar(29)29
No
ZIPchar(11)11
No
PHONE1char(21)21
No
PHONE2char(21)21
No
PHONE3char(21)21
No
FAXchar(21)21
No
Check Constraints CK_RM00102_MODIFDT : (datepart(hour,[MODIFDT])=(0) AND datepart(minute,[MODIFDT])=(0) AND datepart(second,[MODIFDT])=(0) AND datepart(millisecond,[MODIFDT])=(0))MODIFDTdatetime8
No
Check Constraints CK_RM00102_CREATDDT : (datepart(hour,[CREATDDT])=(0) AND datepart(minute,[CREATDDT])=(0) AND datepart(second,[CREATDDT])=(0) AND datepart(millisecond,[CREATDDT])=(0))CREATDDTdatetime8
No
DEX_ROW_IDint4
No
1 - 1
Indexes Indexes
NameColumnsUniqueFill Factor
Cluster Primary Key PK_RM00102: CUSTNMBR\ADRSCODEPK_RM00102CUSTNMBR, ADRSCODE
Yes
80
Check Constraints Check Constraints
NameOn ColumnConstraint
CK_RM00102_CREATDDTCREATDDT(datepart(hour,[CREATDDT])=(0) AND datepart(minute,[CREATDDT])=(0) AND datepart(second,[CREATDDT])=(0) AND datepart(millisecond,[CREATDDT])=(0))
CK_RM00102_MODIFDTMODIFDT(datepart(hour,[MODIFDT])=(0) AND datepart(minute,[MODIFDT])=(0) AND datepart(second,[MODIFDT])=(0) AND datepart(millisecond,[MODIFDT])=(0))
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[RM00102]
(
[CUSTNMBR] [char] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[ADRSCODE] [char] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[SLPRSNID] [char] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[UPSZONE] [char] (3) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[SHIPMTHD] [char] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[TAXSCHID] [char] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[CNTCPRSN] [char] (61) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[ADDRESS1] [char] (61) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[ADDRESS2] [char] (61) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[ADDRESS3] [char] (61) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[COUNTRY] [char] (61) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[CITY] [char] (35) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[STATE] [char] (29) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[ZIP] [char] (11) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[PHONE1] [char] (21) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[PHONE2] [char] (21) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[PHONE3] [char] (21) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[FAX] [char] (21) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[MODIFDT] [datetime] NOT NULL,
[CREATDDT] [datetime] NOT NULL,
[DEX_ROW_ID] [int] NOT NULL IDENTITY(1, 1)
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[RM00102] ADD CONSTRAINT [CK_RM00102_CREATDDT] CHECK ((datepart(hour,[CREATDDT])=(0) AND datepart(minute,[CREATDDT])=(0) AND datepart(second,[CREATDDT])=(0) AND datepart(millisecond,[CREATDDT])=(0)))
GO
ALTER TABLE [dbo].[RM00102] ADD CONSTRAINT [CK_RM00102_MODIFDT] CHECK ((datepart(hour,[MODIFDT])=(0) AND datepart(minute,[MODIFDT])=(0) AND datepart(second,[MODIFDT])=(0) AND datepart(millisecond,[MODIFDT])=(0)))
GO
ALTER TABLE [dbo].[RM00102] ADD CONSTRAINT [PK_RM00102] PRIMARY KEY CLUSTERED  ([CUSTNMBR], [ADRSCODE]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
GRANT SELECT ON  [dbo].[RM00102] TO [MssExec]
GRANT INSERT ON  [dbo].[RM00102] TO [MssExec]
GRANT DELETE ON  [dbo].[RM00102] TO [MssExec]
GRANT UPDATE ON  [dbo].[RM00102] TO [MssExec]
GO
Uses