SELECT
  RTRIM([SLPRSNID]) AS slprsnid,
  RTRIM([SLPRSNFN]) AS slprsnfn,
  RTRIM([SPRSNSLN]) AS sprsnsln,
  RTRIM([EMPLOYID]) AS employid,
  RTRIM([VENDORID]) AS vendorid,
  RTRIM([SPRSNSMN]) AS sprsnsmn,
  RTRIM([ADDRESS1]) AS address1,
  RTRIM([ADDRESS2]) AS address2,
  RTRIM([ADDRESS3]) AS address3,
  RTRIM([CITY]) AS city,
  RTRIM([STATE]) AS state,
  RTRIM([ZIP]) AS zip,
  RTRIM([COUNTRY]) AS country,
  RTRIM([PHONE1]) AS phone1,
  RTRIM([PHONE2]) AS phone2,
  RTRIM([PHONE3]) AS phone3,
  RTRIM([FAX]) AS fax,
  [INACTIVE] AS inactive,
  RTRIM([SALSTERR]) AS salsterr,
  RTRIM([COMMCODE]) AS commcode,
  [COMPRCNT] AS comprcnt,
  [STDCPRCT] AS stdcprct,
  [COMAPPTO] AS comappto,
  [COSTTODT] AS costtodt,
  [CSTLSTYR] AS cstlstyr,
  [TTLCOMTD] AS ttlcomtd,
  [TTLCOMLY] AS ttlcomly,
  [COMSLTDT] AS comsltdt,
  [COMSLLYR] AS comsllyr,
  [NCOMSLTD] AS ncomsltd,
  [NCOMSLYR] AS ncomslyr,
  [KPCALHST] AS kpcalhst,
  [KPERHIST] AS kperhist,
  [NOTEINDX] AS noteindx,
  [MODIFDT] AS modifdt,
  [CREATDDT] AS creatddt,
  [COMMDEST] AS commdest,
  [DEX_ROW_TS] AS dex_row_ts,
  [DEX_ROW_ID] AS dex_row_id
FROM [GPSERVER].[CHG].[dbo].[RM00301]
