View Categories

Set Up the Microsoft SQL Server Connector: Server Name, SQL Express, Logins and Cloud

Connector setup · Microsoft SQL Server

Set up the Microsoft SQL Server connector

Three things decide whether a SQL Server connection works: the right server name, a server that accepts network connections, and a SQL Server login. This page walks through each, plus Azure, Amazon RDS and Google Cloud SQL.

About 10 minutes Windows, Mac or Linux Agent Read-only, data stays put
Stuck at any point? Just ask us. Open Support in Query Streams (top-right menu → Support) and send us a message. Real people read it, and “I don’t know what this screen is asking for” is a perfectly good question.

What you’ll end up with

Microsoft SQL Server logoA Microsoft SQL Server connection in Data Agents that tests Connected, with the databases you want ticked, ready for Excel, Google Sheets, an AI assistant or the REST API. The Agent reads your data where it lives; nothing is copied into Query Streams.

What the Agent needs

An Agent that can reach the server

On Windows, Mac or Linux. The SQL Server client is built into the Agent, so there is no driver to install. Not installed yet? Install the Agent on Windows.

A SQL Server login

A login name and password that SQL Server itself checks, not your Windows sign-in. Best a read-only one: create a read-only login.

The server name

Something like OFFICE-SERVER, 192.168.1.20 or OFFICE-SERVER\SQLEXPRESS. Not sure? Find the server name.

The easiest way round most of this. If you can install programs on the computer that runs SQL Server, install the Agent there. No firewall rule is needed then, and the server name is simply localhost (or localhost\SQLEXPRESS for SQL Express).

Add the connection

  1. Open the form

    Open Data Agents (under Data in the top menu), click Add connector on your Agent and choose Microsoft SQL Server. Database on Azure, Amazon or Google? Pick that provider’s own card instead; see the cloud sections below.

  2. Fill in five boxes

    Connection name
    Any name you will recognise, like Sales server.
    Server
    The server name, typed exactly as described in Find the server name. There is no Database box: you pick the database after the test.
    Port
    Leave 1433, including for a named instance such as OFFICE-SERVER\SQLEXPRESS. The line under the box says the same: Leave 1433 for a named instance (host\INSTANCE); the server’s SQL Browser finds the port. Enter a port only if the instance uses a fixed one.
    Username / Password
    The SQL Server login. The boxes start empty.

    Leave Connection Timeout (sec), Encrypt Connection and Trust Server Certificate as they are (why the last two do not matter today).

  3. Click Test connection

    A green Connected means the Agent signed in; the button changes to Next. An amber Signed in means the login works but needs a database name: carry on, the next step asks for it (details). A red Connection failed comes with a message: find it in Test failed?.

  4. Pick the database and create

    Click Next. Under Which databases do you want to work with? tick yours, click Next, choose a Data realm, click Next, then Create connector.

Test button greyed out? The Agent is offline: follow Is the Agent online? first.

When something is in the way

Each section below is one situation, one action per step, with what you should see after it.

Find the server name

SQL Server can run several copies side by side on one computer, called instances. The first is usually the default instance and has no name of its own; any other, including every SQL Express install, has a name such as SQLEXPRESS. The Server box needs the computer and, for a named instance, the instance.

Not comfortable with this? Ask whoever looks after your database (often the company that supplied your accounting or till software) “what server name do I connect to?”, or reply to support and we will find it with you.

  1. See which instances are installed

    On the SQL Server computer, click Start and type SQL Server Configuration Manager. If nothing appears, type the file name for your version and press Enter: SQLServerManager16.msc for SQL Server 2022, SQLServerManager15.msc for 2019, SQLServerManager14.msc for 2017, SQLServerManager17.msc for 2025. Click Yes if Windows asks for permission.

    In the list on the left click SQL Server Services. Each line that starts SQL Server ( is one instance. SQL Server (MSSQLSERVER) is the default instance. Anything else in the brackets, such as SQL Server (SQLEXPRESS), is a named instance, and that word is its name.

  2. Find the computer’s name

    On the same computer click Start, then Settings, then System, then About. The line Device name is the computer’s name, for example OFFICE-SERVER. Its IP address, such as 192.168.1.20, works too.

  3. Or ask SQL Server itself

    If you have SQL Server Management Studio (SSMS), the Connect to Server box it opens with already shows the Server name people use. Once connected, click New Query, paste the line below and press F5:

    Paste into the query window, then press F5
    SELECT @@SERVERNAME;

    The result is the name in the right shape, for example OFFICE-SERVER\SQLEXPRESS.

  4. Type it in the right shape

    What you haveServerPort
    Default instanceOFFICE-SERVER or 192.168.1.201433
    Named instance (SQL Express)OFFICE-SERVER\SQLEXPRESS1433. This means “ask the server’s SQL Server Browser for the real port”.
    Named instance with a fixed portOFFICE-SERVERThat port, for example 50123. Any port other than 1433 makes the Agent connect to that port directly and drop the instance name.
    A name with a comma, such as sql.example.com,14330Paste it as it isLeave 1433; the port after the comma wins.
    A name with a colon, such as sql.example.com:14330Paste it as it isThe Agent reads the colon as the comma SQL Server expects.
    SQL Server on the Agent’s own computerlocalhost or localhost\SQLEXPRESS1433. localhost means the Agent’s computer, not the one you are typing on.
    (localdb)\MSSQLLocalDBWill not work, and the form says so under the box: LocalDB runs inside your Windows login session; the agent service cannot open it. Attach the database to a SQL Server or SQL Express instance and enter that server. Ask whoever built the app to move the database to SQL Server or SQL Express.

    As you type, a line under the Server box confirms how it was read:

    Named instance, Port 1433
    Named instance: the server’s SQL Browser finds the port. Leave Port at 1433.
    Named instance, another port
    A port other than 1433 is set, so the instance name is ignored: the agent connects to host,port. If you meant the instance, set Port back to 1433.
    A colon before the port
    Read as host,port. SQL Server separates the port with a comma; the agent accepts both.
    localhost, (local) or .
    localhost, (local) and . mean the computer the agent runs on, not this one.

    Reading named instances this way needs Agent 2.6.23 or newer (released 9 October 2026). Older Agents fail every named instance with Connection failed: Cannot establish TCP connection to SQL Server; the Agent updates itself, and this page covers one that has not.

If any of this does not match what you see, stop and reply to our support email with a photo of the screen. We will walk you through it.

If it is SQL Express or another named instance

A fresh SQL Express install accepts connections only from its own computer: TCP/IP, the setting that lets other computers in, starts turned off. A named instance also relies on a helper service, SQL Server Browser, to tell the Agent which port it is on. The steps below turn both on. You need to be an administrator on the SQL Server computer.

Not comfortable with this? Ask whoever looks after the server to “enable TCP/IP for the SQLEXPRESS instance and set SQL Server Browser to Automatic”, or reply to support and we will do it with you.

  1. Open SQL Server Configuration Manager

    On the SQL Server computer, open it as in Find the server name, step 1. A window opens with a list on the left.

  2. Look at TCP/IP for your instance

    In the list on the left, expand SQL Server Network Configuration and click Protocols for SQLEXPRESS (your instance’s name after “for”). On the right are Shared Memory, Named Pipes and TCP/IP, each with a status. If TCP/IP already says Enabled, skip to step 5.

  3. Enable TCP/IP

    Right-click TCP/IP and choose Enable. A message says the change only takes effect when the service restarts; click OK. The status now reads Enabled, but nothing has changed yet.

  4. Restart the instance

    In the list on the left click SQL Server Services. On the right, right-click SQL Server (SQLEXPRESS) and choose Restart. The icon beside it shows a red square, then a green arrow, within a few seconds. Anyone using the database is disconnected for those seconds, so pick a quiet moment.

  5. Set SQL Server Browser to start by itself

    In the same list find SQL Server Browser and read its Start Mode column. If it says Automatic, go to step 6. If it says Manual or Other (Boot, System, Disabled or Unknown), double-click SQL Server Browser, click the Service tab, set Start Mode to Automatic, and click OK.

  6. Start SQL Server Browser

    If its State column does not say Running, right-click SQL Server Browser and choose Start. The State changes to Running. If Start is greyed out, step 5 did not save; do it again.

  7. Open the firewall, if the Agent is on another computer

    A named instance needs two Windows Firewall rules on the SQL Server computer: UDP 1434 for the Browser and TCP for the instance’s own port. Open a firewall port on Windows: named instances shows how to read that port (under IPAll), make it fixed so it stops changing after a restart, and add both rules. Agent on the SQL Server computer itself? Skip this step.

  8. Test again

    Back in the Portal, keep Server as OFFICE-SERVER\SQLEXPRESS and Port as 1433; the line under Server reads Named instance: the server’s SQL Browser finds the port. Leave Port at 1433. Click Test again. If you gave the instance a fixed port in step 7, you can instead type that port in Port; the Browser and the UDP rule are then not needed.

If any of this does not match what you see, stop and reply to our support email with a photo of the screen. We will walk you through it.

If the test says “Login failed” and the password is right

Many SQL Server and SQL Express installs accept only Windows accounts until one setting is changed, and the connector signs in with a SQL Server login. While that setting is off, the test says Connection failed: Login failed for user ‘qs_reader’. That is word for word what a wrong password gives, so it is easy to retype the password again and again. If you are sure of the password, this is the reason.

Not comfortable with this? Ask whoever looks after your database to “turn on SQL Server and Windows Authentication mode”, or reply to support and we will do it with you.

  1. Open SSMS and connect

    On the SQL Server computer open SQL Server Management Studio. In the Connect to Server box leave Authentication on Windows Authentication and click Connect. A panel called Object Explorer appears on the left with the server name at the top.

  2. Open the server’s Security page

    Right-click the server name at the very top of Object Explorer and choose Properties. In the list on the left of the window that opens, click Security. Under Server authentication there are two choices.

  3. Allow SQL Server logins

    If SQL Server and Windows Authentication mode is already selected, click Cancel: the setting is fine, so the login or password is wrong; go to step 5. Otherwise click it, then OK. A message says the change takes effect after SQL Server restarts; click OK.

  4. Restart SQL Server

    Right-click the server name again, choose Restart, and click Yes. The icon by the server name turns grey and back to green in under a minute.

  5. Make sure the login exists

    Expand Security, then Logins. If the name you typed in the Portal is not listed, create it: Create a read-only database user: SQL Server has a paste-in version and a click-through one. Untick User must change password at next login; the Agent cannot change a password, so with that ticked it never gets in.

  6. Test again

    Back in the Portal, click Test again. Connected means you are through.

If any of this does not match what you see, stop and reply to our support email with a photo of the screen. We will walk you through it.

Encrypt Connection and Trust Server Certificate

Leave both boxes as they are. Today the Agent ignores them: it asks for no encryption and trusts whatever certificate the server shows. In practice:

  • A server with a self-signed certificate connects without a certificate error. The Agent’s test never fails on a certificate today.
  • A server that insists on encryption still gets it. Azure SQL always does; your own SQL Server does when its administrator has set Force Encryption.
  • Otherwise the hop between the Agent and SQL Server is not encrypted, so it is best kept inside your own network. The Agent’s link to Query Streams is encrypted either way.

This is a known issue and is being fixed. SSMS on your own computer is different: if it says The certificate chain was issued by an authority that is not trusted, tick Trust Server Certificate in its Connect to Server box.

If your database is Azure SQL Database

Not comfortable with this? Ask whoever manages your Azure account to “allow this IP address through the SQL server firewall”, or reply to support.

  1. Copy the server name

    In the Azure portal open SQL databases and click your database. Its overview page shows the full server name, such as myserver.database.windows.net. Copy it.

  2. Let the Agent’s address through

    On the same page click Set server firewall. Set Public network access to Selected networks. Click Add a firewall rule and enter the public IP address of the Agent’s computer (on that computer, search the web for “what is my IP”). Add your client IP adds the address of the computer your browser is on, which is only right if the Agent is on the same network. Click Save.

  3. Use the Azure SQL card

    In the Portal choose Azure SQL instead of Microsoft SQL Server. In Azure, on your database’s page, open Connection strings and copy the ADO.NET one into Connection String (paste ADO.NET from the Azure portal); the boxes below fill in. It starts Server=tcp:; that tcp: is fine, the Agent drops it. Azure shows the password as {your_password}, so type the real one into Password.

  4. Name your database and test

    The Azure SQL card has a Database box, because Azure ties each connection to one database. Type your database’s name, not master, then click Test connection. Serverless databases pause when idle; the first test after a pause can take a minute.

If any of this does not match what you see, stop and reply to our support email with a photo of the screen. We will walk you through it.

If it is Azure SQL Managed Instance

A Managed Instance lives inside an Azure virtual network. Either install the Agent on a machine in that network and use the instance’s normal host name, or turn on its public endpoint:

  1. Enable the public endpoint

    In the Azure portal open the SQL managed instance. Under Security click Networking, choose Enable for the public endpoint, and click Save.

  2. Allow port 3342

    Your network administrator adds an inbound rule to the instance’s network security group: TCP, destination port 3342, source the Agent computer’s public IP, with a lower priority number than the deny_all_inbound rule.

  3. Enter the public host name

    Under Settings, Connection strings shows the public host, shaped name.public.zone.database.windows.net. In the Portal choose Microsoft SQL Server, put that host in Server and 3342 in Port (or paste name.public.zone.database.windows.net,3342 into Server and leave 1433), then test.

On any Azure host, a test without a database name can come back amber Signed in with This login needs a database name to sign in. even when the password is wrong. If Verify then fails on a database you know exists, recheck the password.

If your database is Amazon RDS for SQL Server

  1. Copy the endpoint

    In the Amazon RDS console choose Databases, click your SQL Server instance, and on the Connectivity & security tab copy the Endpoint and note the Port.

  2. Let the Agent in

    Unless the Agent runs inside the same VPC, the instance needs Public accessibility set to Yes, and its VPC security group needs an inbound rule for that port from the Agent computer’s public IP. (My IP as the source fills in the address of the computer your browser is on.)

  3. Use the Amazon RDS card

    In the Portal choose Amazon RDS and paste the endpoint with its port, such as mydb.abc123.us-east-1.rds.amazonaws.com:1433, into Endpoint or Connection String (paste from the RDS console). Port 1433 sets Database Engine to SQL Server; check it did, since the card starts on PostgreSQL. Username is the master username or a login you created. Then test.

If your database is Google Cloud SQL for SQL Server

  1. Authorise the Agent’s address

    In the Cloud SQL instances page click your instance, then Connections in the menu, then the Networking tab. With Public IP ticked, under Authorized networks click Add network, put the Agent computer’s public IP in Network, click Done, then Save.

  2. Use the Google Cloud SQL card

    In the Portal choose Google Cloud SQL, set Database Engine to SQL Server, type the instance’s public IP (on its overview page) in Instance IP address, and change Port to 1433; it starts at 5432, PostgreSQL’s port. Running the Cloud SQL Auth Proxy on the Agent’s computer instead? Use 127.0.0.1.

After the test: pick the database

The connector has no Database box; the database is chosen on the step after a good test. What you see there depends on the login:

A list of databases
Under Which databases do you want to work with? tick yours. System databases such as master carry a system chip and are never ticked for you. You can tick up to five; the first is the Primary, used when a query does not name a database.
“This login can’t list databases”
Type the name in Type a database name and click Verify. You should see Sales added. (with your database’s name). Sales doesn’t exist or this login can’t open it. means a typo, or the login has no user in that database; What the agent said shows SQL Server’s own words, and the read-only login page shows how to map the login to it.
An amber “Signed in” after the test
The test says No database opened yet. Name it on the next step. followed by This login needs a database name to sign in. Enter your database. (Azure) or Signed in, but this login’s default database can’t be opened. Enter your database. Nothing is broken. Click Next, type the database name and click Verify.

Then click Next, choose a Data realm, click Next, check the summary and click Create connector. The Agent then reads the table list of each ticked database.

Test failed?

The message after Connection failed tells you which of these it is. Names in capitals stand for yours.

MessageCauseFix
Connection failed: nothing answered on HOST:1433. SQL Server is not listening on that port, or a firewall between the agent and the server blocks it.TCP/IP is off for the instance, SQL Server is stopped, a firewall blocks the port, or the server name is mistyped.Check the name (Find the server name), then turn on TCP/IP, then open the port.
Connection failed: instance "SQLEXPRESS" was not found on HOST. followed by The SQL Server Browser service must be running on the server…SQL Server Browser stopped, TCP/IP off, UDP 1434 or the instance port blocked, or the instance name misspelt.If it is SQL Express or another named instance.
Connection failed: Cannot establish TCP connection to SQL ServerAn Agent older than 2.6.23 with a named instance, or any of the causes in the first row.Update the Agent (how), then test again.
Under the Server box, before any test: LocalDB runs inside your Windows login session; the agent service cannot open it. From the test itself:Connection failed: (localdb)\MSSQLLocalDB is a LocalDB instance.LocalDB cannot be opened by a service.Move the database to SQL Server or SQL Express and enter that server.
Connection failed: Login failed for user ‘NAME’.Wrong password, the login does not exist, or the server accepts Windows accounts only. Today all three read the same.Retype the password once; then If the test says “Login failed”.
Amber Signed in, with Enter your database.The login works but needs a database name.Pick the database.
On Verify: DATABASE doesn’t exist or this login can’t open it.A typo, or the login is not mapped to that database.Check the spelling; map the login with User Mapping.
A message containing Client with IP address … is not allowed to access the serverAzure’s firewall. The address in the message is the Agent’s.Add that exact address: Azure SQL, step 2.
A message starting Connection failed: A network-related or instance-specific error occurredWith localhost: SQL Server is not running on the Agent’s computer. Otherwise the server or instance could not be reached.Check SQL Server (…) is Running in Configuration Manager on the right computer, then the rows above.
A message mentioning timeoutSomething silently drops the traffic (often a firewall on the instance’s own port), or a paused Azure serverless database is waking.Wait a minute and test again; then check both firewall rules.
The certificate chain was issued by an authority that is not trustedComes from SSMS or another tool, not from the Agent today.In that tool tick Trust Server Certificate (why).
Test button greyed out: Agent is offline — start the agent to test the connectionThe Agent is not connected.Is the Agent online?

Next: use the data

Still stuck? Open Support in Query Streams and tell us which step you are on and what you see. We will get you connected.

Setup trouble?

  • Agent shows Offline, or Test connection and Browse are greyed out? Check that the Agent is online → Is the Agent online?
Updated on October 11, 2026

Powered by BetterDocs