Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I pass multiple parameters to a logparser sql query?

Using logparser you can pass on parameters to the query you'd like to run such as:

logparser file:query.sql?logs=somewhere\*.log -o:Sql -server:databaseserver 
  -database:database  -createtable:ON -i:IISW3C 
  -iCheckPoint:somewhere\query.lpc -transactionRowCount:200

Now I want to pass a second parameter to the sql query but it doesn't seem possible.

logparser file:query.sql?a=1&b=2

is seen as: a = "1&b=2". Escaping the character with an accent doesn't work either. Is this a limitation of the logparser tool?

like image 345
svandragt Avatar asked Oct 21 '08 11:10

svandragt


1 Answers

Found the answer, use the + character:

logparser file:query.sql?a=1+b=2
like image 170
svandragt Avatar answered Nov 15 '22 10:11

svandragt