You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know if it needs to be in the driver. I think there's some logic needed to calculate the right pipe name to connect to.
We'd probably only support automatic instances that are started externally.
The documentation shows how you may be able to connect using go-sqlcmd today by doing the pipe name calculation yourself.
The issue is, as already mentioned above by David Shiflet (@shueybubbles) that the issues is the Go implementation does not find the pipe name from the name (LocalDb)\MSSQLLocalDb - this is a pitty because it makes much messier than they should be.
Most tools can connect to (LocalDb)\MSSQLLocalDb but not the Go implementation of sqlcmd.
Any update on this? we are moving towards Entra ID authorization and the odbc version does NOT support features like workload identity, which means this version is our defacto version moving forward. We use localdb for unit tests with sqlcmd and this impacts us.
EDIT : we have updated our tests to ensure using named pipe format which works however full support for instance name would be great.
Activity
stuartpa commentedon Oct 20, 2023
It would be great to fix this. Is it something we need to fix in the underlying go-mssqldb driver?
shueybubbles commentedon Oct 20, 2023
I don't know if it needs to be in the driver. I think there's some logic needed to calculate the right pipe name to connect to.
We'd probably only support automatic instances that are started externally.
The documentation shows how you may be able to connect using go-sqlcmd today by doing the pipe name calculation yourself.
eg
np:\\.\pipe\LOCALDB#F365A78E\tsql\querystuartpa commentedon Oct 24, 2023
I get "Access Denied" when using the correct np (obtained from SqlLocalDB.exe) with go-sqlcmd. It works fine with the ODBC version.
willsbctm commentedon Dec 20, 2023
I had to uninstall the sqlcmd go version and use sqlcmd ODBC version =(
That's the solution (not good) that I found.
weberms commentedon Jul 28, 2024
I'm having the same issue. When is this being pulled from backlog and fixed?
iopaul commentedon Dec 31, 2024
I'm having the same issue. any updates?
shueybubbles commentedon Dec 31, 2024
With 1.8.2 I am able to use the pipe name directly.
It's a poor substitute but worth a try until we have time to address it.
doggy8088 commentedon Jun 16, 2025
I really wish this bug can be fixed soon.
yooakim commentedon Jun 23, 2025
I also wish this can be fixed :-)
aityahiaidir commentedon Sep 19, 2025
I have the same issue,
yes with name pipe it's work, but it remains a dynamic path that we do not know beforehand to use it in installation scripts, for example.
for now, the bug still persists, I even tried with the pre-release 1.19 and it’s the same issue.
yooakim commentedon Sep 24, 2025
Stuart Padley (@stuartpa) You probably need to add the
-Eto make the connection work, I just verified and this works fine for me:The issue is, as already mentioned above by David Shiflet (@shueybubbles) that the issues is the Go implementation does not find the pipe name from the name
(LocalDb)\MSSQLLocalDb- this is a pitty because it makes much messier than they should be.Most tools can connect to
(LocalDb)\MSSQLLocalDbbut not the Go implementation of sqlcmd.richshadman commentedon Aug 4, 2026
Any update on this? we are moving towards Entra ID authorization and the odbc version does NOT support features like workload identity, which means this version is our defacto version moving forward. We use localdb for unit tests with sqlcmd and this impacts us.
EDIT : we have updated our tests to ensure using named pipe format which works however full support for instance name would be great.