Skip to content

SQL Exporter Failing to Connect to SQL Server Named Instance #515

Closed Answered by burningalchemist
aszkuat asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @aszkuat, sql_exporter is using dburl library for unified DSN connection string format across many databases, so I'd suggest to try this syntax out as per their documentation:

sqlserver://user:[email protected]/instance/dbname

where instance is instance1 and dbname is your desired database name to connect to. dbname might also be a mandatory value (whereas instance can be optional), but it's controlled by the mssql driver, so omitting might potentially work. Give it a try.

Here is the reference link.

Also, the reference from the driver here.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by burningalchemist
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants