Skip to content

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

Closed
@arvindshmicrosoft

Description

@arvindshmicrosoft

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions