Table: dbo.W2_Rendered_Template
Table used to store pre-rendered form template documents used during W2 processing.
Columns
Name | Type | Constraints | Description
w2_rendered_template_KEY | int (4) | NOT NULL | Primary key for table.
form_year | int (4) | NOT NULL | Filing year of the template
report_definition_KEY | int (4) |  | Key of the associated report; a null value means the document is associated with a tax form instead of a report.
template_document | varbinary (-1) | NOT NULL | Cached ActiveReport page of a particular W2 form, includes only the form graphics.
tax_form_KEY | int (4) |  | Key of the associated tax form; a null value means the document is associated with a report instead of a tax form.
render_date | smalldatetime (4) | NOT NULL | Date the document was rendered.

Primary key
Name | Columns | Description
PK_W2_Rendered_Template | w2_rendered_template_KEY |
Unique constraints
Name | Columns | Description
UK_W2_Rendered_Template$form_year$report_definition_KEY$tax_form_KEY | form_year, report_definition_KEY, tax_form_KEY |

Foreign keys
Name | Columns | Referenced table | Description
FK_W2_Rendered_Template__Report_Definition__report_definition_KEY | report_definition_KEY | Report_Definition (report_definition_KEY) |
FK_W2_Rendered_Template__Tax_Form__tax_form_KEY | tax_form_KEY | Tax_Form (tax_form_KEY) |