1.2k questions

1.4k answers

361 comments

339 users

Categories

Sidebar
0 votes
882 views
by gary-t-8719 (15.1k points)

2 Answers

+1 vote
 
Best answer
Yes, QIE supports database connections using a Named Instance.

To specify a database connection using a named instance you include both the server name and the named instance in the hostname field separated by a back slash.

e.g. localhost\namedInstance

References:

https://docs.microsoft.com/en-us/sql/connect/jdbc/building-the-connection-url?view=sql-server-2017

https://confluence.atlassian.com/stashkb/connecting-to-named-instances-in-sql-server-from-stash-443548795.html
by gary-t-8719 (15.1k points)
edited by rich-c-2789
by rich-c-2789 (17.6k points)
Depending on your Microsoft SQL Server configuration, you may need to click the "Manually set the connection URL" and remove the port.  So instead of:

jdbc:sqlserver://hostname\instancename:1433;databaseName=TestDB

change to:

jdbc:sqlserver://hostname\instancename;databaseName=TestDB
+1 vote
Also see this related question that shows how to discover or change the port.  Typically mulitple named instances exist on a box, each with a different port.

https://www.qvera.com/kb/index.php/125/how-can-i-connect-to-ms-sql-server-express-database-using-qie?show=125#q125
by rich-c-2789 (17.6k points)
...