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

How to connect to a local named instance #8

Open
margusbirk opened this issue May 31, 2017 · 2 comments
Open

How to connect to a local named instance #8

margusbirk opened this issue May 31, 2017 · 2 comments

Comments

@margusbirk
Copy link

margusbirk commented May 31, 2017

I have a local SQLServer instance named SQLSRV. I usually connect to it using the following connectionstring:
data source=.\SQLSRV;initial catalog=mayflowertests;persist security info=True;MultipleActiveResultSets=True;integrated security=SSPI

When I try to deploy migrations using mayflower I get a connection error, I've tried these commands but they result in errors:

  1. mayflower -d .\migrations\ --connection "Server=(local)\SQLSRV;initial catalog=mayflowertests;persist security info=True;UID=sa;PWD=mypw;MultipleActiveResultSets=True"

  2. mayflower -d .\migrations\ --connection "Server=.\SQLSRV;initial catalog=mayflowertests;persist security info=True;UID=sa;PWD=mypw;MultipleActiveResultSets=True"

  3. mayflower -d .\migrations\ --connection "Server=.\\SQLSRV;initial catalog=mayflowertests;persist security info=True;UID=sa;PWD=mypw;MultipleActiveResultSets=True"

results in - message: 'Failed to lookup instance on (local) - getaddrinfo ENOTFOUND (local)'

does mayflower support local named instances?

@margusbirk
Copy link
Author

As a temporary solution I was able to bind the local instance to an IP and configure mayflower to connect to that ip, but it would be nice to have a way to connect to named instances.

@bretcope
Copy link
Owner

bretcope commented Jun 2, 2017

I've never done anything with named instances, so I'm honestly not sure.

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

No branches or pull requests

2 participants