Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Named Instances for Microsoft Sql Server #204

Merged
merged 1 commit into from
Oct 17, 2024

Conversation

gittgott
Copy link
Contributor

Microsoft Sql Server has what are known as named instances. These use dynamic ports and are connected to using the following syntax AdventureWorks\myInstanceName where AdventureWorks is the server name and myInstanceName is the instance name.
The tedious library handles adding named instances to the connection config options through options.instanceName. This notes that port and instanceName are mutually exclusive (as the port is dynamic when using named instances).

This PR resolves this missing functionality by splitting the server into a server and instanceName and setting the port to undefined if the instanceName is present.

@RobinBlomberg
Copy link
Owner

Great work! Thank you!

@RobinBlomberg RobinBlomberg merged commit 462bf4d into RobinBlomberg:master Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants