Comments (4)
It would be great to fix this. Is it something we need to fix in the underlying go-mssqldb driver?
from go-sqlcmd.
C:\Program Files\Microsoft SQL Server\150\Tools\Binn>SqlLocalDB.exe info MSSQLLocalDB
Name: MSSQLLocalDb
Version: 15.0.4153.1
Shared name:
Owner: REDMOND\******
Auto-create: Yes
State: Running
Last start time: 24/10/2023 06:15:04
Instance pipe name: np:\\.\pipe\LOCALDB#4B62CD62\tsql\query
C:\>sqlcmd -S np:\\.\pipe\LOCALDB#4B62CD62\tsql\query
Access is denied.
Access is denied.
C:\>"C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\SQLCMD.EXE" -S np:\\.\pipe\LOCALDB#4B62CD62\tsql\query
1>
I get "Access Denied" when using the correct np (obtained from SqlLocalDB.exe) with go-sqlcmd. It works fine with the ODBC version.
from go-sqlcmd.
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\query
from go-sqlcmd.
I had to uninstall the sqlcmd go version and use sqlcmd ODBC version =(
That's the solution (not good) that I found.
from go-sqlcmd.
Related Issues (20)
- sqlcmd panics when using MSI on App Service HOT 1
- Need a way to pass the HostNameInCertificate parameter for strict encryption connections HOT 2
- Linux sqlcmd cannot restore an OLDER backup file created in SQL 2022 (16.0.4095.4) to a new server instance sql 2022 (16.0.4105.2) HOT 2
- SqlCmd 1.5.0 Access Denied in Elevation mode against WID - Work fine with old SqlCmd 15 (SQL2019) HOT 4
- The image has the following vulnerability: CVE-2024-24557 BaseSeverity: high; BaseScore: 7.8. HOT 1
- What jdbc connection string property corresponds with the `-G` flag? HOT 1
- Release v1.6.0 missing msi HOT 1
- Double exclamation within text expression with some parenthesis deal as sqlcmd instruction
- Service Principal that is Azure AD admin cannot connect to database HOT 2
- Unable to connect to remote docker host when using SSH HOT 2
- EXIT command not parsed in powershell using -Q
- Scripting variables are not expanded in :out and :r commands HOT 2
- RHEL 8 repo misses v1.6.0 HOT 1
- No package available in RHEL 9 repo HOT 3
- Crash when use q and Q HOT 1
- BCP supports with ODBC Driver 18
- Ubuntu 22.04 repo: v1.6.0 not available
- wixproj needs to consume wix from nuget HOT 1
- Ubuntu 24.04 repo: sqlcmd not available
- Pull in latest go-mssqldb for fix to az-cli resource name
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-sqlcmd.