Google Cloud SQL Server

Google Cloud SQL Server is a fully-managed database service that helps you set up, maintain, manage, and administer your SQL Server relational databases on Google Cloud Platform.

You can ingest data from your Google Cloud SQL Server database using Hevo Pipelines and replicate it to a Destination of your choice.

Prerequisites


Perform the following steps to configure your Google Cloud SQL Server Source:

Whitelist Hevo’s IP Addresses

You need to whitelist the Hevo IP address for your region to enable Hevo to connect to your Google Cloud SQL Server database. To do this:

  1. Access the Google Cloud SQL Instances page and click the Instance ID that you want to use.

    Click instance

  2. In the left navigation pane, under Overview, click Connections.

  3. In the Connections page, select the Public IP check box, and then, click + Add Network.

    Add network

  4. Specify the following in the Edit Network section:

    • Name: A name for this connection. For example, all or Hevo IP address.

    • Network: The IP address of the site to grant access to. Specify 0.0.0.0/0 to authorize all sites or your region’s IP address to specifically whitelist Hevo’s IP address.

    This adds the IP address to the list of Authorized networks.

  5. (Optional) Click + Add network to add another IP address.

  6. Click Save.


Create a User and Grant Privileges

Option 1. Configuring the user account using Google Cloud console

  1. Click the master Google Cloud SQL Server instance.

    Click instance

  2. In the left navigation pane, under Connections, click the Users tab, and then, click + ADD USER ACCOUNT.

    Click add user account

  3. Specify the user account information and click ADD.

    Click ADD

    You will specify this username and password while creating your Hevo Pipeline.

Option 2. Configuring the user account using SQL Server client

Log in to your SQL Server instance as masteruser using your preferred SQL Server client tool, and enter the following commands:

  1. Log in to the database schema where you want to add the user:

    USE <schema_name>;
    
  2. (Optional) Create a login user.

    Note: You can skip this step if you want to use the existing login user to create a new database user.

    CREATE LOGIN '<login_user>' WITH PASSWORD = '<password>';
    
  3. Create a new database user and grant read privileges:

    CREATE USER hevo for login <master_username>;
    EXEC sp_addrolemember 'db_datareader', 'hevo';
    

Retrieve the Configuration Details (Optional)

Refer to the steps below to gather the configuration details required to create your Hevo Pipeline:

1. Retrieve the hostname and port number

Note: Following is an example of Google Cloud SQL Server hostname and port number:
Host : 35.220.150.0
Port : 1433

  1. Access the Google Cloud SQL Instances page.

  2. Locate the hostname of the master instance under the Public IP address column.

    The default port value is 1433.

    Locate hostname

    You will specify these while creating your Hevo Pipeline.

2. Retrieve the username and password

To retrieve your username and password, follow the steps in section, Create a User and Grant Privileges.

3. Retrieve the database names

  1. Access the Google Cloud SQL Instances page.

  2. Click your database instance, and then, click the Databases tab.

    Locate database

In this page, you can locate the name of your database under the Name column.


Specify Google Cloud SQL Server Connection Settings

In the Configure your Google Cloud SQL Server Source page, specify the following:

GCloud SQL Server settings

  • Pipeline Name: A unique name for the Pipeline.

  • SQL Server Host: SQL Server host’s IP address or DNS.

    The following table lists a few examples of SQL Server hosts:

    Variant Host
    Amazon RDS MS SQL ms-sql-server-1.xxxxx.rds.amazonaws.com
    Azure MS SQL mssql.database.windows.net
    Generic MS SQL 10.123.10.001 or mssql.westeros.inc
    Google Cloud SQL Server 35.220.150.0

    Note: For URL-based hostnames, exclude the http:// or https:// part. For example, if the hostname URL is https://mssql.database.windows.net, enter mssql.database.windows.net.

  • SQL Server Port: The port on which your SQL Server is listening for connections. Default value: 1433.

  • SQL Server User: The read-only user who has the permissions to read tables in your database.

  • SQL Server Password: The password for the read-only user.

  • Select an Ingestion Mode: The desired mode by which you want to ingest data from the Source. The available Ingestion Modes are Change Tracking, Table, and Custom SQL. Read Ingestion Modes.

    For Ingestion mode as Table, read Object Settings for steps to configure the objects to be replicated.

  • Database Name: The database that you wish to replicate.

  • Schema Name: The schema that holds the tables to be replicated. Default value: dbo.

  • Connect through SSH: Enable this option to connect to Hevo using an SSH tunnel, instead of directly connecting your SQL Server database host to Hevo. This provides an additional level of security to your database by not exposing your SQL Server setup to the public. Read Connecting Through SSH.

    If this option is disabled, you must whitelist Hevo’s IP addresses. Refer to the content for your SQL Server variant for steps to do this.

  • Advanced Settings:

    • Include New Tables in the Pipeline: Applicable for all Ingestion modes except Custom SQL. If enabled, Hevo automatically ingests data from tables created after the Pipeline has been built. If disabled, the new tables are listed in the Pipeline Detailed View in Skipped state, and you can manually include the ones you want and load their historical data.

    You can change this setting later.

  • Click TEST & CONTINUE to proceed for setting up the Destination.


Revision History

Refer to the following table for the list of key updates made to this page:

Date Release Description of Change
Jun-28-2022 NA Removed section, Source Considerations.
Apr-21-2022 1.86 Updated section, Specify Google Cloud SQL Server Connection Settings.
Jul-26-2021 1.68 Added a note for the SQL Server Host field.
Jul-12-2021 NA Added section, Specify Google Cloud SQL Server Connection Settings.
Feb-22-2021 1.57 New Document
Last updated on 28 Jun 2022