Search code examples
logparser

Log parser Query parameter values containing spaces


Log parser allows us to query though .sql file and also accepts the parameters, but the problem is how to supply the parameter values containing spaces in them.

eg. logparser file:filename.sql?param1=data+param2=C:\Program Files\Folder Name\file.txt

here param2 value contains spaces, how to successfully pass these values to log parser?


Solution

  • Enclose the entire argument in double-quote characters. For example:

    logparser "file:filename.sql?param1=data+param2=C:\Program Files\Folder Name\file.txt"