question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

MSSql or SQL server with instance connection problem

See original GitHub issue

Bug description

When I try to connect to a remote microsoft server database that requires an instance name it fails to connect

How to reproduce

Just try the following connexion string: sqlserver://HOST:PORT;instanceName=instanceNme;database=database;user=user;password=password;

Expected behavior

Prisma information

latest version

Environment & setup

  • OS: Windows
  • Database: MSSQL
  • Node.js version: v14.16.1
  • Prisma version: 2.21.2

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:26 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
pimeyscommented, Apr 30, 2021

Btw, a quick question. Did you use port 1433 or 1434 when connecting? The SQL Browser typically listens 1434.

1reaction
pimeyscommented, Apr 29, 2021

Did you try double-backslash? Might be some of the javascript libraries take a single backslash as an escape character…

host\\INSTANCE:port;...
Read more comments on GitHub >

github_iconTop Results From Across the Web

A network-related or instance-specific error occurred - SQL ...
This message indicates that the instance of SQL Server is listening on all IP addresses on this computer (for IP version 4) and...
Read more >
Cannot Connect to Server - A network-related or instance ...
Start > Run > Firewall.cpl; Click on exceptions tab; Add sqlservr.exe (typically located in C:\Program Files (x86)\Microsoft SQL Server\MSSQL.x ...
Read more >
Resolving could not open a connection to SQL Server errors
Check to see if allow remote connections for this server is enabled. In SSMS, right click on the instance name and select Properties....
Read more >
How to Fix the Error 'A Network-related or Instance-specific ...
Step 1. Check if an instance of SQL Server is installed and is working or not.
Read more >
MSSQL connection problem with instance - Questions - n8n
That looks like the connection has timed out so the first thing I would do is check that the SQL Server is configured...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found