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

Unable to Connect to MS Sql Database Named Instances #137

Open
garkenxian opened this issue Jan 24, 2024 · 0 comments
Open

Unable to Connect to MS Sql Database Named Instances #137

garkenxian opened this issue Jan 24, 2024 · 0 comments

Comments

@garkenxian
Copy link

I was able to get everything working in a test instance, but when I moved this code over to my "production" instances, these are named instances with names like SERVERNAME\DATABASE_INSTANCE.

Honestly I am at a loss as to what to do next. The documentation only refers to using hostname but this does not seem to work with named instances.

When I use it I get this error.

│ Error: Failed to retrieve DB ID for name 'xxxxxxx'
│ 
│   with data.mssql_database.octopus,
│   on _data_sources.tf line 67, in data "mssql_database" "xxxxxx":
│   67: data "mssql_database" "octopus" {
│ 
│ parse
│ "***SERVERNAME%5CDATABASE_INSTANCE:1433?app+name=Terraform+-+mssql+provider":
│ invalid URL escape "%5C"

Thanks

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

1 participant