This content describes Snap 11. For Snap 10, the equivalent page will be in Snap 10 help

Next Topic

Book Contents

Book Index

Importing/exporting data to a database package

You can import data from other software packages to the current survey. The data will be added to the end of the .rdf file holding the current raw data (or respondent data). The following example shows details from a spreadsheet of customer information being imported into Snap.

  1. Make sure that the database or spreadsheet you are importing from is closed.
  2. Open the survey you wish to import the data into.
  3. Click Delete button on the toolbar (or select File | Database Link) to display the Database Linkage dialog box.

  4. Click [New...] to create a new database link. The Database Wizard dialog is displayed.
  5. Select the Import from Database radio button.

  6. Click [Next>].
  7. You must now select a database file or build a database link. You can usually click [Select Database File] button. If the database type you need is not listed as one of the defaults in the Select Database File dialog box then you can use the [Build Data Link] button to create the connection. For this example click on [Select Database File].

    DL wiz: selecting a database file showing customers as the sheet

  8. Browse to the file you need in the Select Database File dialog box and click [Open]. This example uses an Excel spreadsheet called Customers.xls.
  9. Select which area of your database contains the data to use in the Select Table area. For example, the appropriate sheet in a spreadsheet file.
  10. Click [Next>] and select one of the Import/Export Options.

    Join cases where the link variables match:

    Only import/export data where the value in the link variable matches between Snap and the database. (E.g. a Snap survey containing customer ID numbers matches the information in the spreadsheet with the same ID number.) Snap imports all requested data where two ID numbers are matched, and ignores all data in cases where the ID number does not match.

    Join matching cases and append unmatched cases:

    This option works as above, and also adds the unmatched data as new cases at the end of the file.

    Append unmatched cases:

    This option only imports/exports cases that do not find a match between the link variable in Snap and the link variable in the database.

    Append all cases:

    This option imports/exports every database data record into your survey/database as a new data case. It does not try to match the link variables.

  11. If you select one of the first three Import/Export Options, you must set up the Link Variables options.

    Select a database field which contains unique identifiers which identifies cases for Snap (either a unique identifier or a unique case number which matches the Snap case number).

    Select a Snap variable which contains the equivalentunique identifier, or select Use Snap case number if the database you are linked to contained case numbers,.

  12. Click [Next>].
  13. The next step of the wizard asks which data fields you would like to import into Snap. The left column displays all of the fields from the database. The right column asks you to select the Snap variables that will contain the imported data fields. You need to click each of the rows in the right hand column in order to activate the drop-down boxes.

    If you wish to import a field into your survey that does not already have a variable set up in Snap, select <Create variable> in the menu adjacent to the field you wish to import. In this example, <Create variable> is selected for the Databaess field Name.

    The Create Variable dialog is displayed. The Name and Label use the database field bname as a default.. You can edit these.

    Set the response to the correct type (Literal in this example). Click [OK].

  14. Click [Next>].
  15. You are shown the name of the database link you have just set up and a summary of the import or export you have specified. The name and label can be modified if required. When ready, click [Finish].
  16. Snap shows the Database Linkage dialog box including the new link.

    If you wish to alter any part of the link, click [Modify]. To delete a link, click [Delete]. To make a copy of the link, click [Clone],and then modify the new link as required.

  17. Click [Run] to tell Snap to match up the required information and fulfil the command specified. In this case, Snap will pull through the respective data from the database and append any cases it cannot match to the end of the case data.

    When using the Database Link Wizard ensure the spreadsheet or database you have specified is not open in the background as it can cause problems when Snap tries to either import or export.

See Also

Importing/exporting data to another Snap survey

Using Hot Links