sql-server-on-google-cloud Google Cloud SQL Server Integration with Edilitics

Google Cloud SQL Server is a managed relational database service offered by Google Cloud Platform. It lets you run Microsoft SQL Server databases on Google's infrastructure. This service simplifies managing SQL Server as Google handles patching, backups, and scaling, allowing you to focus on your data and applications. To learn more about Google Cloud SQL Server, visit the official Google Cloud SQL Server page.

Within the Edilitics platform, Google Cloud SQL Server can be used both as a source and destination for data, making it a versatile tool for data analysis workflows. This enables you to leverage Google Cloud SQL Server’s strengths for data storage and retrieval within your Edilitics environment.

This step-by-step guide equips you with the knowledge to configure your Google Cloud SQL Server database and integrate it with Edilitics for data analysis.


Before You Begin

Make sure you have the following:

  • Ensure your Google Cloud SQL Server instance is up and running.

    • Verify this on the Google Cloud SQL Instances page by checking for an "Active" status next to the instance ID.
Google Cloud SQL dashboard showing the 'gcp-sqlserver-edilitics' instance with public IP and high availability enabled.
Google Cloud SQL dashboard showing the 'gcp-sqlserver-edilitics' instance with public IP and high availability enabled.
  • The SQL Server version must be 2017 or later for compatibility with Edilitics.

Setting Up Google Cloud SQL Server for Edilitics Integration

Step 1: Whitelist Edilitics IP Addresses

To enable Edilitics to connect to your Google Cloud SQL Server:

  • Access the Google Cloud SQL Instances page and select your desired instance ID.

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

Instance 'gcp-sqlserver-edilitics' connection settings with public IP address and App Engine authorization enabled.
Instance 'gcp-sqlserver-edilitics' connection settings with public IP address and App Engine authorization enabled.
  • On the Connections page:

    • Select the Public IP checkbox.

    • Click + Add Network.

    Networking settings for 'gcp-sqlserver-edilitics' with public IP enabled and an option to add authorized networks.
    Networking settings for 'gcp-sqlserver-edilitics' with public IP enabled and an option to add authorized networks.
  • In the Edit Network section, specify:

    • Name: A descriptive name (e.g., "Edilitics Access").

    • Network: Enter 0.0.0.0/0 to authorize all connections temporarily (not recommended for production) or add Edilitics IPs:

      • 34.93.42.224

      • 34.131.133.218

  • Click Save to add the IP address(es) to the Authorized networks list.

Authorized networks for 'gcp-sqlserver-edilitics' with two entries and save/discard options.
Authorized networks for 'gcp-sqlserver-edilitics' with two entries and save/discard options.

Step 2: Create a Database User and Grant Permissions

Edilitics requires a database user with read-only privileges (db_datareader) to access your data.

Option 1: Google Cloud Console

  • Go to the Google Cloud SQL Instances page.

  • Click on your master SQL Server instance.

Google Cloud SQL dashboard showing the 'gcp-sqlserver-edilitics' instance with public IP and high availability enabled.
Google Cloud SQL dashboard showing the 'gcp-sqlserver-edilitics' instance with public IP and high availability enabled.
  • In the left navigation pane, under Connections, click the Users tab.

  • Click + ADD USER ACCOUNT.

User management for 'gcp-sqlserver-edilitics,' showing system accounts and option to add a new user.
User management for 'gcp-sqlserver-edilitics,' showing system accounts and option to add a new user.
  • Provide the user account details (username and password) and click ADD.
New user creation screen for 'gcp-sqlserver-edilitics' with username and password fields.s
New user creation screen for 'gcp-sqlserver-edilitics' with username and password fields.s

Option 2: SQL Server Client Tool

If using a SQL Server client tool:

  • Log in to your SQL Server instance as the master user.

  • Run the following SQL commands, replacing placeholders:


    USE <schema_name>; -- Replace with your schema name
    -- Optional: Create a login user
    CREATE LOGIN '<login_user>' WITH PASSWORD = '<password>';
    -- Create a database user
    CREATE USER edilitics FOR LOGIN '<login_user>';
    -- Grant read-only permissions
    EXEC sp_addrolemember 'db_datareader', 'edilitics';

    Explanation:

    • CREATE LOGIN creates a login user with a secure password.

    • CREATE USER maps the login to a user within a database.

    • sp_addrolemember grants the db_datareader role for read-only access.


Step 3: Gather Configuration Details

To set up the Edilitics integration, you’ll need the following:

  • Hostname and Port Number:

    • Access the Google Cloud SQL Instances page.

    • Locate the hostname under the Public IP address column.

    Dashboard view of the 'gcp-sqlserver-edilitics' instance with public IP address details.
    Dashboard view of the 'gcp-sqlserver-edilitics' instance with public IP address details.
    • The default port for SQL Server is typically 1433.
  • Username and Password:

    • Use the credentials created in Step 2.
  • Database Names:

    • In the Google Cloud SQL Instances page, click on your instance.

    • Navigate to the Databases tab to locate the database name(s).

    Database list for 'gcp-sqlserver-edilitics,' including 'company_analytics_data' and system databases.
    Database list for 'gcp-sqlserver-edilitics,' including 'company_analytics_data' and system databases.

Connecting Google Cloud SQL Server to Edilitics

Step 4: Add the SQL Server Connector in Edilitics

  • In Edilitics, navigate to the Integrations module.

  • Click on New Integration.

Integration dashboard with no integrations listed and a 'New Integration' button.
Integration dashboard with no integrations listed and a 'New Integration' button.
  • Choose the Google Cloud SQL Server connector from the list or search for it.
Integration library filtered by 'SQL Server,' showing options for 'SQL Server' and 'SQL Server GCP'.
Integration library filtered by 'SQL Server,' showing options for 'SQL Server' and 'SQL Server GCP'.

Step 5: Configure the SQL Server Connection

On the configuration screen, provide the following details:

Field NameDetails
Integration TitleA unique name to identify the integration in Edilitics.
Integration DescriptionBrief description to help organize and clarify the integration.
Database NameThe database name in your Google Cloud SQL Server instance.
HostThe hostname or IP address of your Google Cloud SQL Server instance.
PortThe port number (default is 1433).
UsernameThe username for accessing the database.
PasswordThe corresponding password for the user account.

Using a Connection String

  • Alternatively, connect using the connection string:


    sqlserver://<username>:<password>@<host>:<port>/<database_name>


Step 6: Test the Connection

  • Once you've entered your credentials, click the Test Connection button. Edilitics will attempt to connect to your SQL Server database. You'll see a confirmation message if the connection is successful. If there's a problem, Edilitics will provide details to help you troubleshoot.
SQL Server GCP integration setup form with fields for database name, host, port, username, and password, and a 'Test Connection' button.
SQL Server GCP integration setup form with fields for database name, host, port, username, and password, and a 'Test Connection' button.

Step 7: Verify & Finalize Integration

  • Preview (Optional): Retrieve a sample of tables and data to confirm accuracy.

  • Update (Optional): Adjust connection details if the preview does not match expectations.

  • Save: Finalize by encrypting and storing connection details securely in Edilitics.

Need Assistance? Edilitics Support is Here for You!

Our dedicated support team is ready to assist you. If you have any questions or need help using Edilitics, please don't hesitate to contact us at support@edilitics.com. We're committed to ensuring your success!

Don't just manage data, unlock its potential.

Choose Edilitics and gain a powerful advantage in today's data-driven world.