Example: Moving a Shared Data Source from Test to Production


This example assumes that you have an analysis based on a shared Microsoft SQL Server data source and a shared data connection already set up in your library. See How to Work with Data Connections and their Data Sources in the Library if you need help setting them up. The steps described in these instructions show how you can export copies of the current test items to a different Spotfire server and then change the URL to the data in the exported copies.

Tip: You can skip the export and import steps and redirect the shared data source directly, if you only want to update the database URL .

Note: To export a folder and its contents to file you must be a member of the Library Administrator group and have sufficient folder permissions.

  1. Start Spotfire and log into the server (and deployment area) from which you want to export items.

  2. Open Tools > Library Administration and browse to the folder you want to export.

  3. Select the folder and, on the toolbar, click Export.

  4. Tip: Make sure that all dependencies (columns, filters, etc.) needed by the exported elements are included in the exported folder. You can select separate items and use the Copy button if you need to copy certain items to the folder before the export.

  5. Type a File name for the exported file.

  6. Comment: The folder and its contents will be saved as a zip archive, placed in a specific folder (or in its subfolders) on a specific machine. See the TIBCO Spotfire Server - Installation and Configuration Manual for more information about how to set this up.

  7. In the Export items of type drop-down list, select if you want to limit the export to only include certain types of items.

  8. Select whether to Include permissions or not.

  9. Click Close when the Log states Export done.

Note: To import a folder and its contents to file you must be a member of the Library Administrator group and have sufficient folder permissions.

  1. Copy the exported file to the new Spotfire server. Make sure you place the file in the shared disk location of the new server.

  2. Start Spotfire and log into the server to which you want to import items.

  3. Click on the Import button.

  4. Click Browse.

  5. Select the file you want to import, and click OK.

  6. Select if you want to Include permissions if such are stored in the file. If you do not include any permissions, the imported items will inherit the permissions of the destination folder.

  7. Click OK.

  8. Select a folder to import to, and click OK.

  9. Click Close when the Log states Import done.

  1. Go to Tools > Manage Data Connections.

  2. Go to the folder where the data source to redirect is located and select the data source.

  3. On the toolbar, click Edit.

  4. Response: The Data Source Settings dialog opens.
    lib_example_redirecting_data_source_01.png

  5. In the Data Source Settings dialog click Edit....

  6. Response: The Microsoft SQL Server Connection dialog opens.

  7. Change the Server address to point to the production server, click Connect and then select the Database.

  8. Click OK to close the Microsoft SQL Server Connection dialog.

  9. Click Save.

  10. Response: The data source has now been redirected to the new SQL server instance.

  11. Close the Manage Data Connections dialog.

After exporting or copying items in the library, you also need to replace the data source item used by the data connection, so that it is the exported version of the data source that is in use in the exported connection.

  1. Go to Tools > Manage Data Connections.

  2. Go to the folder where the data connection to redirect is located and select the data source.

  3. On the toolbar, click Edit.

  4. Response: The Data Connection Settings dialog opens.

  5. In the Data Connection Settings dialog, go to the Data Source tab.

  6. Click Settings....

  7. Response: The Data Source Settings dialog opens.

  8. Click Replace.

  9. Browse to the new data source and click OK.

  10. Click OK to close the Data Source Settings dialog.

  11. Click Save.

  12. The data connection has now been redirected to use the new data source instance.

  13. Close the Manage Data Connections dialog.

  14. Comment: All analyses that use this particular data connection will now base their data on the new data source. However, note that if you copy entire analyses from one Spotfire server to another, then you may also need to open the analysis on the new server and switch to a different connection.

  1. Select File > Open From > Library....

  2. Browse to the folder of interest, select the analysis and click Open.

  3. Go to Edit > Data Table Properties.

  4. Select the data table and click on the Source Information tab.

  1. Select File > Open From > Library....

  2. Browse to the folder of interest, select the analysis and click Open.

  3. Go to Edit > Data Connection Properties.

  4. Select the connection that should be replaced and click on Settings....

  5. Click Replace.

  6. Browse to the new data connection and click OK.

  7. Click OK to close the Data Connection Settings dialog.

  8. Click OK to close the Data Connection Properties dialog.

  9. Save the analysis.

See also:

What is a Data Connection?

What is a Connection Data Source?