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

Input file path only supports forward slashes even on Windows #39

Closed
arvindshmicrosoft opened this issue Dec 10, 2021 · 1 comment
Closed

Comments

@arvindshmicrosoft
Copy link
Member

arvindshmicrosoft commented Dec 10, 2021

I am trying to use go-sqlcmd to execute a script (.SQL file). The command line I am using is below:

sqlcmd.exe -i "C:\somedir\somescript.sql" --authentication-method=ActiveDirectoryManagedIdentity -S someserver.database.windows.net

For some reason the sqlcmd exits silently without throwing any errors. I tried specifying non-existent file paths and the result is the same. I don't see any issues with -Q with the same authentication. Something seems specifically wrong with -i

@shueybubbles hinted to me to use forward slash / instead of \. That worked. Though, this being a Windows based environment, it would be natural to work with the Windows-style \. He also pointed out alecthomas/kong#198 for some related info.

@arvindshmicrosoft arvindshmicrosoft changed the title Input file option (-i) is being ignored Input file path only supports forward slashes even on Windows Dec 10, 2021
@shueybubbles
Copy link
Collaborator

Try v0.8.0

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