Creating database links to upload participants

Database links can be used to link a file or database containing participant information to a survey. The participant information can include logins, details used to seed the questionnaire, as well as email addresses and seeding used to send email invitations.

Creating a database link lets you

  • provide the participants’ names and email addresses
  • set up a requirement to login and seed the survey with participants’ login data
  • seed the questionnaire with participants’ data
  • create email invitations and reminders

Database links are created using the database link wizard.

There is initial setup that is necessary for all database links.

  1. Create the participant data file with the correct data. This may be a database or data file, such as a CSV or Excel file.
  2. Create the database link
  3. Select the participant data file.

There are several options available for linking participants following the initial setup stages.

  1. Sending email invitations only with the option to seed the email invitation
  2. Using Logins only with the option to seed the questionnaire
  3. Using Logins and sending email invitations with the option to seed both the email invitation and the questionnaire

Following the database link set up you need to run the database link to upload the participant data to the survey.

Creating the participant data file

What you need in your database (for seed data, email invites and/or logins)

To send emails

To login participants

To seed data into your survey

A unique email address for each respondent

A unique login for all participants (this can be their email address)

A database field for each survey variable that you want to load with data

This table shows the required elements for each database record for the different operations.

 

Unique email address

Unique participant login

Participant password

Fields containing data

Send email invitations

Image: tick

 

 

 

Participant’s login

 Emails do not have to be unique for login

Image: tick  (May be email address)

If required

 

Seed data

 

Image: tick  (May be email address)

 

Image: tick  One database field per survey variable to load with data

An example of an Excel database file is shown below.

Example of an Excel spreadsheet used to import data

This database file contains

  • unique email addresses used to send email invitations
  • usernames and password data used for participant logins
  • two columns that contain seed data, First name and Age (from a single choice age range question)

Creating the database link

  1. Open the survey in Snap XMP Desktop.
  2. Click Database Links   on the toolbar or select File | Database links to display the Database Links dialog box.
  3. Click New to create a new database link. The Database Linkage Wizard is displayed.
  4. Select the Online Invites/Logins/Seeding radio button as the Linkage Type. This is the default option.
Create a database link for uploading participants
  1. Click Next to move to the Select Database page.

Selecting the participant database or file

  1. In the Select Database page, you can select the link to your participants’ data. There are two choices depending on the format in which your data is stored.
    • Click Select Database File and browse to the Excel or MS Access file containing the participants’ data. This needs to include a unique id, such as a username or login id.
    • Click Build Data Link to build a link to an Oracle or SQL Database containing the participants’ data. This needs to include a unique id, such as a username or login id.
Select the database file or build a database link
  1. The Select the Table to use drop-down automatically displays a table name. If this is not the table you require, select a different table from the list. If you wish to filter the participants so that this survey is only available to some members of the database, set an appropriate filter in the Where condition box. Click Next.
  2. The next step depends on the options required for the survey. Click on the link that matches your required choice and follow the instructions given:

Sending email invitations only

  1. On the next page select the option Send email invitations only. Click Next.
Send email invitations only
  1. The next step in the wizard is to create the email invitation and reminder. Here you can design your email invitation and reminder.
    • Set the email address field to be the appropriate database field in the drop-down list.
    • You will need to insert the Survey Location into the main body of the email. This will let your participants know where your survey is located.
    • You can add seeding by inserting a Database Field in the main body of the email or the Email subject.
Create an email invitation
  1. Click Next. You will see a summary of what the database link does.
  2. Enter a name for the link and click Finish.
  3. The next step is to run the database link.

Using Logins only

  1. On the next page select the option Log in respondent. 
Graphical user interface, text, application, email

Description automatically generated
  1. If you want to add seeding to the questionnaire, select Seed database data into questionnaires and follow these instructions to add questionnaire seeding, otherwise click Next to see a summary of what the database link does.
  2. Enter a name for the link and click Finish.
  3. The next step is to run the database link.

Using Logins and sending email invitations

  1. On the next page select the option Log in respondent. 
Graphical user interface, text, application, email

Description automatically generated
  1. Select Send email invitations and reminders. This option allows you to create invitations and reminders in the Email editor page.
  2. If you want to add seeding to the questionnaire, select Seed database data into questionnaires.
  3. Click Next.
  4. The next step in the wizard is to create the email invitation and reminder. Here you can design your email invitation and reminder.
    • Set the email address field to be the appropriate database field in the drop-down list.
    • You will need to insert the Survey Location into the main body of the email. This will let your participants know where your survey is located.
    • You can add seeding by inserting a Database Field in the main body of the email or the Email subject.
Create an email invitation
  1. If you have selected Seed database data into questionnaires, follow these instructions to add questionnaire seeding, otherwise click Next to see a summary of what the database link does.
  2. Enter a name for the link and click Finish.
  3. The next step is to run the database link

Questionnaire seeding required

  1. The questionnaire seeding page is displayed if you have selected Seed database data into questionnaires. Click Next. (If you want to seed group questionnaires click Setting up a database link for group questionnaires)
Log in respondents
  1. To seed (transfer) data from a database field to a question variable in the survey, click in the area to the right of the field and select the survey variable from the drop-down list.

  1. Single and multiple-response questions in Snap XMP Desktop have a code for each possible answer. You can seed data directly into one or more codes.

Column

Description

Database values

The possible values for the selected field in the database.

Counts

The number of cases in the database with the specified value.

Snap code index

The different possible responses to seed into.

Mapping database fields and field values to the survey variables
  1. Select the code that you wish to seed for a given value of the database field. The example shows different age range fields in the database being seeded into the single-multiple response question Age. If the Age field in the database is set to 2 the age range 25 to 44 will be seeded into the field.
  2. Click Next. You will see a summary of what the database link does.
  3. Enter a name for the link and click Finish.
  4. The next step is to run the database link.

Running the database link

When you have set up the participants, invitations and seeded data for your survey you need to run the database link. This will generate the participant and invitation data for the online survey making it available in Snap XMP Online.

Instructions to run the database link

  1. Select File | Database Link to display the Database Links dialog.
  2. Select the link that contains the participants’ data.
Database links dialog listing the links for the survey
  1. Click Run to generate the new participant data. The Run Database Link dialog appears.
Run the database link and upload the results to Snap Online
  1. Choose an option for Participants and Seeding.
OptionDescription

Do nothing

Does not load any participant or seeding data changes to Snap XMP Online.

Add new participants onlyParticipants in the spreadsheet that are not already in the list will be added. The survey options for sending invitations and tracking the response cannot be changed.
Update participantsParticipants in the spreadsheet that are in the list will be updated (seeding properties will also be replaced). Participants in the spreadsheet but not in the list will be added. The survey options for sending invitations and tracking the response cannot be changed.
Replace all participantsNew participants will be added. Participants in the spreadsheet that are in the list will be updated (seeding properties will also be replaced). Participants that are in the list but absent from the spreadsheet will be deleted. Existing response data will NOT be deleted. The survey options for sending invitations and tracking the response can be changed.
Delete participantsAll current participants will be deleted. The response data will NOT be deleted.
  1. Choose an option for Invites and Reminders.

Option

Description

Do nothing

There are no changes made. The process will not upload any invitation or reminder changes to Snap XMP Online.

Define or replace

This will add the invitation and reminder when they are generated for the first time. When there are already uploaded invitations and reminders this option will remove all the existing invitations and reminders to replace them with the new invitation and reminder set up in Snap XMP Desktop.

  1. Click OK to upload the participant data to Snap XMP Online.
Contents