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


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, 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 I.P. 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, 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

  1. Access the Google Cloud SQL Instances page.

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

    The Google Cloud SQL Server port value is 1433 by default.

    Locate hostname

    You will specify these while creating your Hevo Pipeline.

2. Retrieve the username and password

To retrieve your username and password read 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.


Source Consideration

  • Google Cloud SQL Server doesn’t support Binary Log (BinLog) replication.
Last updated on 22 Feb 2021