SURVEYRESPONSE (4.0SP17)

Contains information about survey questions and responses.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

SURVEYID

uniqueidentifier

false

FK to SURVEY

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

Fields
Field Field Type Null Notes Description

QUESTION

nvarchar(max)

false

''

BBNCQUESTIONID

int

false

0

The ID of the downloaded BBNC answer record.

RESPONSE

nvarchar(max)

false

''

BBNCRESPONSEID

int

false

0

The ID of the downloaded BBNC response record.

DATEADDED

datetime

false

getdate()

Indicates the date this record was added.

DATECHANGED

datetime

false

getdate()

Indicates the date this record was last changed.

TS

timestamp

false

Timestamp.

TSLONG

bigint (Computed)

true

Numeric representation of the timestamp.

Indexes
Index Name Field(s) Unique Primary Clustered

IX_SURVEYRESPONSE_DATEADDED

DATEADDED

False

False

True

IX_SURVEYRESPONSE_DATECHANGED

DATECHANGED

False

False

False

IX_SURVEYRESPONSE_SURVEYID

SURVEYID

False

False

False

PK_SURVEYRESPONSE

ID

True

True

False

Triggers
Trigger Name Description

TR_SURVEYRESPONSE_AUDIT_UPDATE

TR_SURVEYRESPONSE_AUDIT_DELETE