Table of Contents | ||
---|---|---|
|
Enabling a Trigger in Microsoft SQL Server Management Studio
By enabling triggers that track changes are turned on or off for these tables. Most of these tables have a delete trigger with a name in the format of ‘XXXX_D_CDC’ where XXXX is the table name and an insert/update trigger in the form of ‘XXXX_IU_CDC’. Two tables make an exception to this rule and have 3 triggers, one for Insert, one for update and one for delete. They are tables SV00300 and SV00301.
...
- Launch Microsoft SQL Server Management Studio.
- Expand Databases > your company database > Tables.
- Expand the appropriate table.
- Expand Triggers.
- Right-click on the XXXX_D_CDC trigger and select Enable. (This is the "delete" trigger.)
- Right-click on the XXXX_IU_CDC trigger and select Enable. (This is the "insert/update" trigger.)
Enabled Triggers Script
This script provides a list of all enabled scripts for a given company:
|
Enabled Triggers Query Results
These are the results of the enabled triggers script query, assuming all nine triggers are enabled:
...
Trigger Name
...
. Note that the Entity name does not display in the query results.
Entity | Table Name | Trigger Name | Disabled | |
---|---|---|---|---|
Job | JC00102 | JC00102_D_CDC | JC00102 | 0 |
JC00102_IU_CDC | JC00102 | 0 0 | ||
Job Cost Code | JC00701 | JC00701_D_CDCJC00701 | 0 | |
JC00701_IU_CDC | JC00701 | 0 0 | ||
GP Customer | RM00101 | RM00101_D_CDCRM00101 | 0 | |
RM00101_IU_CDC | 0 RM00101 | |||
Technician | 0SV00115 | SV00115_D_CDCSV00115 | 0 | |
SV00115_IU_CDC | 0 SV00115 | |||
Service Option | 0sv00196 | sv00196_D_CDC | sv00196 | 0 |
sv00196_IU_CDC | 0 sv00196 | |||
Location | 0SV00200 | SV00200_D_CDCSV00200 | 0 | |
SV00200_IU_CDC | 0 SV00200 | |||
Service Call | 0SV00300 | SV00300_D_CDC | SV00300 | 0 |
SV00300_I_CDC | SV00300 | 0 | ||
SV00300_U_CDC | 0 SV00300 | |||
Appointment | 0SV00301 | SV00301_D_CDCSV00301 | 0 | |
SV00301_I_CDC | SV00301 | 0 | ||
SV00301_U_CDCSV00301 | 0 | |||
Equipment | 0SV00400 | SV00400_D_CDC | SV00400 | 0 |
SV00400_IU_CDC | SV00400 | 0 |
Disabled Triggers Script
If you need to enable triggers for a table not found in this list, run the following script to find the triggers for a given table not in the list and then go through Microsoft SQL Server Management Studio and manually enable the trigger:
|
Disabled Triggers Query Results
GP Database Level
These are the query results at the GP database level from the disabled triggers script, assuming the default nine triggers have been enabled:
...
Trigger Name
...
Table Name
...
Disabled
...
. Note that the Entity name does not display in the query results.
Entity | Table Name | Trigger Name | Disabled |
---|---|---|---|
Call Source | SVCALSRC | SVCALLSRC_D_CDC | 1 |
SVCALLSRC_IU_CDC | 1 | ||
GP Company | SY01500 | SY01500_D_CDC | 1 |
SY01500_IU_CDC | 1 |
Company Database Level
Entity | Table Name | Trigger Name | Disabled | |
---|---|---|---|---|
GP GL Account | GL00100 | GL00100_D_CDC | GL00100 | 1 |
GL00100_IU_CDC | GL00100 | 11 | ||
Job User Defined | JC00107 | JC00107_D_CDCJC00107 | 1 | |
JC00107_IU_CDC | JC00107 | 11 | ||
Estimate Revision | JC00201 | JC00201_D_CDC | JC00201 | 1 |
JC00201_IU_CDC | JC00201 | 11 | ||
Forecast Revision | JC00401 | JC00401_D_CDC | JC00401 | 1 |
JC00401_IU_CDC | 1 | JC00401|||
Job Cost Note | 1JC00501 | JC00501_D_CDC | JC00501 | 1 |
JC00501_IU_CDC | JC00501 | 11 | ||
Job Bill Code | JC00601 | JC00601_D_CDCJC00601 | 1 | |
JC00601_IU_CDC | 1 | JC00601|||
Job Revenue Code | 1JC00610 | JC00610_D_CDCJC00610 | 1 | |
JC00610_IU_CDC | JC00610 | 11 | ||
Employee Union Code Master | JC00801 | JC00801_D_CDCJC00801 | 1 | |
JC00801_IU_CDC | 1 | JC00801|||
Change Order | 1JC01001 | JC01001_D_CDC | JC01001 | 1 |
JC01001_IU_CDC | JC01001 | 11 | ||
Change Order Cost Code | JC01002 | JC01002_D_CDCJC01002 | 1 | |
JC01002_IU_CDC | JC01002 | 11 | ||
Job Change Order Revenue Code | JC01004 | JC01004_D_CDCJC01004 | 1 | |
JC01004_IU_CDC | JC01004 | 11 | ||
Job Vendor | JC01501 | JC01501_D_CDCJC01501 | 1 | |
JC01501_IU_CDC | 1 | JC01501|||
Job Vendor Date | 1JC01504 | JC01504_D_CDCJC01504 | 1 | |
JC01504_IU_CDC | 1 | JC01504|||
Job Project | 1JC01701 | JC01701_D_CDCJC01701 | 1 | |
JC01701_IU_CDC | JC01701 | 11 | ||
Rate Class | JC01801 | JC01801_D_CDC | JC01801 | 1 |
JC01801_IU_CDC | JC01801 | 11 | ||
Job Lien Waiver | JC20705 | JC20705_D_CDCJC20705 | 1 | |
JC20705_IU_CDC | 1 | JC20705|||
Fed Class | 1JC40106 | JC40106_D_CDC | JC40106 | 1 |
JC40106_IU_CDC | JC40106 | 11 | ||
Union Code | JC40201 | JC40201_D_CDC | JC40201 | 1 |
JC40201_IU_CDC | 1 | JC40201|||
Cost Element | 1JC40209 | JC40209_IU_CDC | 1 | JC40209 | 1
Resource Extension | K2A_ResourceExtension | K2A_ResourceExtension_D_CDC | K2A_ResourceExtension | 1 |
K2A_ResourceExtension_IU_CDC | K2A_ResourceExtension | 1 | 1 | |
GP Purchase Order | POP10100 | POP10100_D_CDC | POP10100 | 1 |
POP10100_IU_CDC | POP10100 | 1 | 1 | |
GP Purchase Order Detail | POP10110 | POP10110_D_CDC | POP10110 | 1 |
POP10110_IU_CDC | POP10110 | 11 | ||
GP Address | RM00102 | RM00102_D_CDC | RM00102 | 1 |
RM00102_IU_CDC | 1 | RM00102|||
GP Salesperson | 1RM00301 | RM00301_D_CDCRM00301 | 1 | |
RM00301_IU_CDC | RM00301 | 11 | ||
Installation By | SV_00415 | SV_00415_D_CDC | SV_00415 | 1 |
SV_00415_IU_CDC | SV_00415 | 1 | 1 | |
Time Zone | SV00045 | SV00045_D_CDC | SV00045 | 1 |
SV00045_IU_CDC | 1 | SV00045|||
Division | 1SV00077 | SV00077_D_CDCSV00077 | 1 | |
SV00077_IU_CDCSV00077 | 1 | |||
Note | 1SV000805 | SV000805_D_CDCSV000805 | 1 | |
SV000805_IU_CDCSV000805 | 1 | |||
Customer | 1SV00100 | SV00100_D_CDC | SV00100 | 1 |
SV00100_IU_CDC | SV00100 | 11 | ||
Technician Vehicle | SV00113 | SV00113_D_CDCSV00113 | 1 | |
SV00113_IU_CDC | 1 | SV00113|||
Technician Branch | 1SV00114 | SV00114_D_CDCSV00114 | 1 | |
SV00114_IU_CDC | 1 | SV00114|||
Technician Skill Set | 1SV00155 | SV00155_D_CDC | SV00155 | 1 |
SV00155_IU_CDC | 1 | SV00155|||
Sublocation | 1SV00201 | SV00201_D_CDCSV00201 | 1 | |
SV00201_IU_CDC | SV00201 | 11 | ||
Problem Type | SV00310 | SV00310_D_CDCSV00310 | 1 | |
SV00310_IU_CDC | 1 | SV00310|||
Call Type | 1SV00320 | SV00320_D_CDCSV00320 | 1 | |
SV00320_IU_CDC | 1 | SV00320|||
Appointment Status | 1SV00325 | SV00325_D_CDCSV00325 | 1 | |
SV00325_IU_CDC | SV00325 | 11 | ||
Technician Activity | sv00326 | sv00326_D_CDCsv00326 | 1 | |
sv00326_IU_CDCsv00326 | 1 | |||
User Define 1 | SV00330 | SV00330_D_CDC | SV00330 | 1 |
SV00330_IU_CDC | SV00330 | 11 | ||
User Define 2 | SV00331 | SV00331_D_CDCSV00331 | 1 | |
SV00331_IU_CDC | SV00331 | 11 | ||
Contract Equipment | SV00403 | SV00403_D_CDC | SV00403 | 1 |
SV00403_IU_CDC | SV00403 | 11 | ||
Equipment Type | SV00405 | SV00405_D_CDC | SV00405 | 1 |
SV00405_IU_CDC | 1 | SV00405|||
Manufacturer | 1SV00410 | SV00410_D_CDCSV00410 | 1 | |
SV00410_IU_CDC | SV00410 | 11 | ||
Model Number | SV00411 | SV00411_D_CDCSV00411 | 1 | |
SV00411_IU_CDC | 1 | SV00411|||
Extended Warranty Type | 1SV00420 | SV00420_D_CDCSV00420 | 1 | |
SV00420_IU_CDC | 1 | SV00420|||
Meter Reading | 1SV00430 | sv00430_D_CDC | sv00430 | 1 |
sv00430_IU_CDCsv00430 | 1 | |||
Contract | 1SV00500 | SV00500_D_CDCSV00500 | 1 | |
SV00500_IU_CDC | 1 | SV00500|||
Task Code | 1SV00560 | SV00560_D_CDCSV00560 | 1 | |
SV00560_IU_CDC | SV00560 | 11 | ||
Skill Level | SV00572 | SV00572_D_CDC | SV00572 | 1 |
SV00572_IU_CDC | SV00572 | 11 | ||
Invoice History | SV00701 | SV00701_D_CDC | SV00701 | 1 |
SV00701_IU_CDC | 1 | SV00701|||
Service Cost Code | 1SV00735 | SV00735_IU_CDC | 1 | SV00735|
Building | 1SV01200 | SV01200_D_CDCSV01200 | 1 | |
SV01200_IU_CDC | SV01200 | 11 | ||
Refrigerant Type | SV40180 | SV40180_D_CDC | SV40180 | 1 |
SV40180_IU_CDC | SV40180 | 11 | ||
Refrigerant Code | SV40182 | SV40182_D_CDC | SV40182 | 1 |
SV40182_IU_CDC | 1 | SV40182|||
Refrigerant Leak | 1SV40184 | SV40184_D_CDC | SV40184 | 1 |
SV40184_IU_CDC | SV40184 | 11 | ||
GP Internet Address | SY01200 | SY01200_D_CDCSY01200 | 1 | |
SY01200_IU_CDC | 1 | SY01200|||
GP Employee | 1UPR00100 | UPR00100_D_CDCUPR00100 | 1 | |
UPR00100_IU_CDC | UPR00100 | 1 | 1 | |
GP Employee Tax Info | UPR00300 | UPR00300_D_CDC | UPR00300 | 1 |
UPR00300_IU_CDC | UPR00300 | 1 | 1 | |
GP Employee Pay Code | UPR00400 | UPR00400_D_CDCUPR00400 | 1 | |
UPR00400_IU_CDC | UPR00400 | 1 | 1 | |
GP Employee State Tax | UPR00700 | UPR00700_D_CDCUPR00700 | 1 | |
UPR00700_IU_CDC | UPR00700 | 11 | ||
GP Department | UPR40300 | UPR40300_D_CDC | UPR40300 | 1 |
UPR40300_IU_CDC | UPR40300 | 11 | ||
GP Position | UPR40301 | UPR40301_D_CDC | UPR40301 | 1 |
UPR40301_IU_CDC | 1 | UPR40301|||
GP Pay Code | 1UPR40600 | UPR40600_D_CDC | UPR40600 | 1 |
UPR40600_IU_CDC | UPR40600 | 11 | ||
GP Workers Comp | UPR40700 | UPR40700_D_CDCUPR40700 | 1 | |
UPR40700_IU_CDC | UPR40700 | 11 | ||
GP Payroll State | UPR41100 | UPR41100_D_CDCUPR41100 | 1 | |
UPR41100_IU_CDC | 1 | UPR41100|||
Purchase Order Detail | 1WS10101 | WS10101_D_CDCWS10101 | 1 | |
WS10101_IU_CDC | 1 | WS10101|||
TimeTrack Option | 1WS40000 | WS40000_D_CDC | WS40000 | 1 |
WS40000_IU_CDC | WS40000 | 11 | ||
TimeTrack Registered User | WS41001 | WS41001_D_CDCWS41001 | 1 | |
WS41001_IU_CDCWS41001 | 1 | |||
Attachment | 1WSDOCS | WSDOCS_D_CDCWSDOCS | 1 | |
WSDOCS_IU_CDCWSDOCS | 1 |