Jump to content
  • Setting up a Spotfire database in Google Cloud SQL for SQL Server


    With version 14.1 of Spotfire, you can set up a Spotfire database for Google Cloud SQL for SQL Server using these instructions.

    Prerequisites

    • You have access to a SQL server database on Google Cloud.
    • You have downloaded and installed SQL Server Management Studio (SSMS) on your computer.
    • You have downloaded the Spotfire Server installation kit from the TIBCO eDelivery website, and you have extracted the files.

    Important: Use the Microsoft JDBC Driver for SQL Server for the database connection.

    Perform this task in your terminal or at the command prompt.

    Instructions

    1. Open Microsoft SQL Server Management Studio (SSMS).

      In the Connect to Server dialog, select Database Engine for Server Type, enter the name of the Google Cloud SQL database and your authentication type and credentials, and then click Connect.

    Note: If SSMS cannot connect because of access permission, you must add your network into authorized networks under the networking tab in the Connections option for the SQL Server instance.
    1. In the Object Explorer pane of SSMS, expand Databases > System Databases, right-click the master database, and then click New Query.
    Result: A blank query pane is displayed.
    1. Create the Spotfire database by entering the following text in the query pane, replacing SERVERDB_NAME with the name of the Spotfire database to create:

       

      CREATE DATABASE SERVERDB_NAME

    GO

    1. Click Execute.

      Result: The message pane displays "Commands completed successfully.

      Note: This result text should be displayed when you click Execute in SSMS.

     

    1. In the query pane, replace the previous command with the following text, replacing SERVERDB_USER with the name of the user to create to set up the Spotfire database, and SERVERDB_PASSWORD with the password for that user:

       

      CREATE LOGIN SERVERDB_USER WITH PASSWORD=N'SERVERDB_PASSWORD'

    GO

    1. Click Execute.
    1. In the query pane, replace the previous command with the following text, replacing SERVERDB_USER  with the name of the user that was created in the previous step:

       

      ALTER LOGIN SERVERDB_USER ENABLE

    GO

    1. Click Execute.
    1. In the Object Explorer pane, refresh the database view. The newly created database should be visible.
    1. To finish setting up the Spotfire database user, right-click the newly created database, and then click New Query.
    1. In the new query pane, enter the following text, replacing SERVERDB_USER  with the name of the user that was created in step 9:

       

      CREATE USER SERVERDB_USER

    GO

    1. Click Execute.
    1. In the query pane, replace the previous command with the following text, again replacing SERVERDB_USER with the name of the user that was created in step 9:

       

      GRANT CONTROL TO SERVERDB_USER

    GO

    1. Click Execute.
    1. In a text editor, open the file <Spotfire server installation kit dir>\scripts\mssql_install\create_server_db.sql.
    1. In the SSMS query pane, replace the previous command with all the text from the file create_server_db.sql.
    1. In the query pane, delete all the text before the following line: 

    create table "SN_VERSION" (

    1. Click Execute.
    1. In a text editor, open the file <Spotfire Server installation kit dir>\scripts\mssql_install\populate_server_db.sql.
    1. In the SSMS query pane, replace the previous commands with all of the text from the file populate_server_db.sql.
    1. In the query pane, delete all the text before the following line:

    insert into SN_VERSION (SPOTFIRE_VERSION, SCHEMA_VERSION) values ('SPOTFIRE_VERSION', 'SPOTFIRE_SCHEMA_VERSION');

    1. Click Execute.

    Result

    You now have a working Spotfire database in your Google Cloud SQL database.

    What to do next

    On the Bootstrap page of the Spotfire Server configuration tool, enter the database connection information. For more information, see Creating the bootstrap.xml in the Spotfire Server Installation and Administration guide. (In the Hostname field of the Bootstrap page, enter the Public IP that is displayed in the tab "Connect to this instance" in the Overview page on Google Cloud Portal.)

     


    User Feedback

    Recommended Comments

    There are no comments to display.


×
×
  • Create New...