Closed
Description
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.
Metadata
Metadata
Assignees
Labels
No labels