Tables [dbo].[RM00101]
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_RM00101: CUSTNMBRCUSTNMBRvarchar(15)15
No
CUSTNAMEvarchar(65)65
No
CUSTCLASvarchar(15)15
Yes
CPRCSTNMvarchar(15)15
Yes
CNTCPRSNvarchar(61)61
Yes
STMTNAMEvarchar(65)65
Yes
SHRTNAMEvarchar(15)15
Yes
ADRSCODEvarchar(15)15
Yes
UPSZONEvarchar(3)3
Yes
SHIPMTHDvarchar(15)15
Yes
TAXSCHIDvarchar(15)15
Yes
ADDRESS1varchar(61)61
Yes
ADDRESS2varchar(61)61
Yes
ADDRESS3varchar(61)61
Yes
COUNTRYvarchar(61)61
Yes
CITYvarchar(35)35
Yes
STATEvarchar(29)29
Yes
ZIPvarchar(11)11
Yes
PHONE1varchar(21)21
Yes
PHONE2varchar(21)21
Yes
PHONE3varchar(21)21
Yes
FAXvarchar(21)21
Yes
PRBTADCDvarchar(15)15
Yes
PRSTADCDvarchar(15)15
Yes
STADDRCDvarchar(15)15
Yes
SLPRSNIDvarchar(15)15
Yes
CHEKBKIDvarchar(15)15
Yes
PYMTRMIDvarchar(21)21
Yes
CRLMTTYPsmallint2
No
CRLMTAMTnumeric(19,5)9
No
CRLMTPERsmallint2
No
CRLMTPAMnumeric(19,5)9
No
CURNCYIDvarchar(15)15
Yes
RATETPIDvarchar(15)15
Yes
CUSTDISCsmallint2
No
PRCLEVELvarchar(11)11
Yes
MINPYTYPsmallint2
No
MINPYDLRnumeric(19,5)9
No
MINPYPCTsmallint2
No
FNCHATYPsmallint2
No
FNCHPCNTsmallint2
No
FINCHDLRnumeric(19,5)9
No
MXWOFTYPsmallint2
No
MXWROFAMnumeric(19,5)9
No
COMMENT1varchar(31)31
Yes
COMMENT2varchar(31)31
Yes
USERDEF1varchar(21)21
Yes
USERDEF2varchar(21)21
Yes
TAXEXMT1varchar(25)25
Yes
TAXEXMT2varchar(25)25
Yes
TXRGNNUMvarchar(25)25
Yes
BALNCTYPsmallint2
No
STMTCYCLsmallint2
No
BANKNAMEvarchar(31)31
Yes
BNKBRNCHvarchar(21)21
Yes
SALSTERRvarchar(15)15
Yes
DEFCACTYsmallint2
No
RMCSHACCint4
No
RMARACCint4
No
RMSLSACCint4
No
RMIVACCint4
No
RMCOSACCint4
No
RMTAKACCint4
No
RMAVACCint4
No
RMFCGACCint4
No
RMWRACCint4
No
Check Constraints CK_RM00101_FRSTINDT : (datepart(hour,[FRSTINDT])=(0) AND datepart(minute,[FRSTINDT])=(0) AND datepart(second,[FRSTINDT])=(0) AND datepart(millisecond,[FRSTINDT])=(0))FRSTINDTdatetime8
No
INACTIVEtinyint1
No
HOLDtinyint1
No
CRCARDIDvarchar(15)15
Yes
CRCRDNUMvarchar(21)21
Yes
Check Constraints CK_RM00101_CCRDXPDT : (datepart(hour,[CCRDXPDT])=(0) AND datepart(minute,[CCRDXPDT])=(0) AND datepart(second,[CCRDXPDT])=(0) AND datepart(millisecond,[CCRDXPDT])=(0))CCRDXPDTdatetime8
No
KPDSTHSTtinyint1
No
KPCALHSTtinyint1
No
KPERHISTtinyint1
No
KPTRXHSTtinyint1
No
NOTEINDXnumeric(19,5)9
No
Check Constraints CK_RM00101_CREATDDT : (datepart(hour,[CREATDDT])=(0) AND datepart(minute,[CREATDDT])=(0) AND datepart(second,[CREATDDT])=(0) AND datepart(millisecond,[CREATDDT])=(0))CREATDDTdatetime8
No
Check Constraints CK_RM00101_MODIFDT : (datepart(hour,[MODIFDT])=(0) AND datepart(minute,[MODIFDT])=(0) AND datepart(second,[MODIFDT])=(0) AND datepart(millisecond,[MODIFDT])=(0))MODIFDTdatetime8
No
Revalue_Customertinyint1
No
Post_Results_Tosmallint2
No
FINCHIDvarchar(15)15
Yes
GOVCRPIDvarchar(31)31
Yes
GOVINDIDvarchar(31)31
Yes
DISGRPERsmallint2
No
DUEGRPERsmallint2
No
DOCFMTIDvarchar(15)15
Yes
DEX_ROW_IDint4
No
1 - 1
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_RM00101: CUSTNMBRPK_RM00101CUSTNMBR
Yes
Check Constraints Check Constraints
NameOn ColumnConstraint
CK_RM00101_CCRDXPDTCCRDXPDT(datepart(hour,[CCRDXPDT])=(0) AND datepart(minute,[CCRDXPDT])=(0) AND datepart(second,[CCRDXPDT])=(0) AND datepart(millisecond,[CCRDXPDT])=(0))
CK_RM00101_CPRCSTNM_BALNCTYP([CPRCSTNM]<>'' AND [BALNCTYP]=(0) OR [CPRCSTNM]='' AND [BALNCTYP]=(1) OR [CPRCSTNM]='' AND [BALNCTYP]=(0))
CK_RM00101_CREATDDTCREATDDT(datepart(hour,[CREATDDT])=(0) AND datepart(minute,[CREATDDT])=(0) AND datepart(second,[CREATDDT])=(0) AND datepart(millisecond,[CREATDDT])=(0))
CK_RM00101_FRSTINDTFRSTINDT(datepart(hour,[FRSTINDT])=(0) AND datepart(minute,[FRSTINDT])=(0) AND datepart(second,[FRSTINDT])=(0) AND datepart(millisecond,[FRSTINDT])=(0))
CK_RM00101_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].[RM00101]
(
[CUSTNMBR] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[CUSTNAME] [varchar] (65) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[CUSTCLAS] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[CPRCSTNM] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[CNTCPRSN] [varchar] (61) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[STMTNAME] [varchar] (65) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[SHRTNAME] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[ADRSCODE] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[UPSZONE] [varchar] (3) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[SHIPMTHD] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[TAXSCHID] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[ADDRESS1] [varchar] (61) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[ADDRESS2] [varchar] (61) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[ADDRESS3] [varchar] (61) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[COUNTRY] [varchar] (61) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[CITY] [varchar] (35) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[STATE] [varchar] (29) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[ZIP] [varchar] (11) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[PHONE1] [varchar] (21) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[PHONE2] [varchar] (21) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[PHONE3] [varchar] (21) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[FAX] [varchar] (21) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[PRBTADCD] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[PRSTADCD] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[STADDRCD] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[SLPRSNID] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[CHEKBKID] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[PYMTRMID] [varchar] (21) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[CRLMTTYP] [smallint] NOT NULL,
[CRLMTAMT] [numeric] (19, 5) NOT NULL,
[CRLMTPER] [smallint] NOT NULL,
[CRLMTPAM] [numeric] (19, 5) NOT NULL,
[CURNCYID] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[RATETPID] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[CUSTDISC] [smallint] NOT NULL,
[PRCLEVEL] [varchar] (11) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[MINPYTYP] [smallint] NOT NULL,
[MINPYDLR] [numeric] (19, 5) NOT NULL,
[MINPYPCT] [smallint] NOT NULL,
[FNCHATYP] [smallint] NOT NULL,
[FNCHPCNT] [smallint] NOT NULL,
[FINCHDLR] [numeric] (19, 5) NOT NULL,
[MXWOFTYP] [smallint] NOT NULL,
[MXWROFAM] [numeric] (19, 5) NOT NULL,
[COMMENT1] [varchar] (31) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[COMMENT2] [varchar] (31) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[USERDEF1] [varchar] (21) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[USERDEF2] [varchar] (21) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[TAXEXMT1] [varchar] (25) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[TAXEXMT2] [varchar] (25) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[TXRGNNUM] [varchar] (25) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[BALNCTYP] [smallint] NOT NULL,
[STMTCYCL] [smallint] NOT NULL,
[BANKNAME] [varchar] (31) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[BNKBRNCH] [varchar] (21) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[SALSTERR] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[DEFCACTY] [smallint] NOT NULL,
[RMCSHACC] [int] NOT NULL,
[RMARACC] [int] NOT NULL,
[RMSLSACC] [int] NOT NULL,
[RMIVACC] [int] NOT NULL,
[RMCOSACC] [int] NOT NULL,
[RMTAKACC] [int] NOT NULL,
[RMAVACC] [int] NOT NULL,
[RMFCGACC] [int] NOT NULL,
[RMWRACC] [int] NOT NULL,
[FRSTINDT] [datetime] NOT NULL,
[INACTIVE] [tinyint] NOT NULL,
[HOLD] [tinyint] NOT NULL,
[CRCARDID] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[CRCRDNUM] [varchar] (21) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[CCRDXPDT] [datetime] NOT NULL,
[KPDSTHST] [tinyint] NOT NULL,
[KPCALHST] [tinyint] NOT NULL,
[KPERHIST] [tinyint] NOT NULL,
[KPTRXHST] [tinyint] NOT NULL,
[NOTEINDX] [numeric] (19, 5) NOT NULL,
[CREATDDT] [datetime] NOT NULL,
[MODIFDT] [datetime] NOT NULL,
[Revalue_Customer] [tinyint] NOT NULL,
[Post_Results_To] [smallint] NOT NULL,
[FINCHID] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[GOVCRPID] [varchar] (31) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[GOVINDID] [varchar] (31) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[DISGRPER] [smallint] NOT NULL,
[DUEGRPER] [smallint] NOT NULL,
[DOCFMTID] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[DEX_ROW_ID] [int] NOT NULL IDENTITY(1, 1)
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[RM00101] ADD CONSTRAINT [CK_RM00101_CCRDXPDT] CHECK ((datepart(hour,[CCRDXPDT])=(0) AND datepart(minute,[CCRDXPDT])=(0) AND datepart(second,[CCRDXPDT])=(0) AND datepart(millisecond,[CCRDXPDT])=(0)))
GO
ALTER TABLE [dbo].[RM00101] ADD CONSTRAINT [CK_RM00101_CPRCSTNM_BALNCTYP] CHECK (([CPRCSTNM]<>'' AND [BALNCTYP]=(0) OR [CPRCSTNM]='' AND [BALNCTYP]=(1) OR [CPRCSTNM]='' AND [BALNCTYP]=(0)))
GO
ALTER TABLE [dbo].[RM00101] ADD CONSTRAINT [CK_RM00101_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].[RM00101] ADD CONSTRAINT [CK_RM00101_FRSTINDT] CHECK ((datepart(hour,[FRSTINDT])=(0) AND datepart(minute,[FRSTINDT])=(0) AND datepart(second,[FRSTINDT])=(0) AND datepart(millisecond,[FRSTINDT])=(0)))
GO
ALTER TABLE [dbo].[RM00101] ADD CONSTRAINT [CK_RM00101_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].[RM00101] ADD CONSTRAINT [PK_RM00101] PRIMARY KEY CLUSTERED  ([CUSTNMBR]) ON [PRIMARY]
GO
GRANT SELECT ON  [dbo].[RM00101] TO [MssExec]
GRANT INSERT ON  [dbo].[RM00101] TO [MssExec]
GRANT DELETE ON  [dbo].[RM00101] TO [MssExec]
GRANT UPDATE ON  [dbo].[RM00101] TO [MssExec]
GO
Uses