Yandex Cloud
Search
Contact UsGet started
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • AI for business
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
© 2025 Direct Cursus Technology L.L.C.
Yandex DataLens
  • DataLens neuroanalyst
    • Overview
    • Versioning
    • Caching
    • Combining data
      • Creating a ClickHouse® connection
      • Creating a PostgreSQL connection
      • Creating a MySQL® connection
      • Creating a YDB connection
      • Creating a Greenplum® connection
      • Creating a SQL Server connection
      • Creating an Oracle Database connection
      • Creating a Prometheus connection
      • Creating a Snowflake connection
      • Creating a Trino connection
  • DataLens Gallery
  • Audit Trails events
  1. Connections
  2. Databases
  3. Creating a SQL Server connection

Creating a SQL Server connection

Written by
Yandex Cloud
Updated at September 17, 2025

Warning

Yandex Cloud holds no responsibility for configuring a remote connection on an external database server side. When connecting an external database which is not a Yandex Cloud resource:

  • Make sure the database uses an SSL certificate signed by a SSL certificate authority. You will not be able to create a connection in DataLens if the database uses a self-signed SSL certificate.

  • Grant database access to the following DataLens IP ranges (/ is followed by subnet mask length):

    ipv4
    ipv6
    • 178.154.242.176/28
    • 178.154.242.192/28
    • 178.154.242.208/28
    • 178.154.242.128/28
    • 178.154.242.144/28
    • 178.154.242.160/28
    • 130.193.60.0/28
    • 2a02:6b8:c03:500:0:f83d:a987:0/112
    • 2a02:6b8:c02:900:0:f83d:a987:0/112
    • 2a02:6b8:c0e:500:0:f83d:a987:0/112
    • 2a02:6b8:c41:1300:0:f83d:a987:0/112

To create a SQL Server connection:

  1. Open the page for creating a new connection.

  2. Under Databases, select the MS SQL Server connection.

  3. Configure the connection as follows:

    • Hostname. Specify the path to a master host or a SQL Server master host IP address. You can specify multiple hosts in a comma-separated list. If you are unable to connect to the first host, DataLens will select the next one from the list.
    • Port. Specify the SQL Server connection port. The default port is 1433.
    • Path to database. Specify the name of the database to connect to.
    • Username. Specify the username for the SQL Server connection.
    • Password. Enter the password for the specified user.
    • Cache TTL in seconds. Specify the cache time-to-live or leave the default value. The recommended value is 300 seconds (5 minutes).
    • Raw SQL level. Enables you to use an ad-hoc SQL query to generate a dataset. This option is disabled by default. When enabling it, you will need to select the raw SQL level:

      • Allow subqueries in datasets: Describe dataset sources using SQL queries.
      • Allow subqueries in datasets and source parameterization: Describe dataset sources using SQL queries and use source parameterization.
      • Allow subqueries in datasets, source parameterization, and QL charts: Describe dataset sources using SQL queries, use source parameterization, and create QL charts.
  4. (Optional) Test the connection. To do this, click Check connection.

  5. Click Create connection.

  6. Select a workbook to save your connection to or create a new one. If using legacy folder navigation, select a folder to save the connection to. Click Create.

  7. Enter a name for the connection and click Create.

Additional settingsAdditional settings

You can limit data export from charts by enabling Disable data export under Advanced connection settings. With this option enabled, charts based on the respective connection will no longer display the export data option in their menu. However, you will still be able to copy chart data and take screenshots.

Was the article helpful?

Previous
Creating a Greenplum® connection
Next
Creating an Oracle Database connection
© 2025 Direct Cursus Technology L.L.C.