« Previous Next »

Thread: Scripted COM Input

Last post 01-22-2007 3:37 PM by LogParser User : StanL. 3 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (4 items)

Sort Posts:

  • 01-22-2007, 8:52 AM

    Scripted COM Input

    I registered the QBF.wsc and executed the command line logparser "SELECT * FROM ." -i:COM -iprogid:MSUtil.LogQuery.Sample.QFE  and it worked. I wanted to 'script' the .wsc and so set up

    cSQL = 'SELECT * FROM .'

    oLog = CreateObject("MSUtil.LogQuery")

    oInput = CreateObject("MSUtil.LogQuery.Sample.QFE")

    oOut = CreateObject("MSUtil.LogQuery.XMLOutputFormat")

    oLog.ExecuteBatch cSQL, oInput, oOut

    but get this error which I do not inderstand.

    Stan

  • 01-22-2007, 10:04 AM In reply to

    Oh, BTW if I simply script

    oRS = oLog.Execute cSQL, oInput

    I can query the recordset object using  GetColumnCount(), GetColumnName() and toNativeString( "," ) to concatenate a .csv file... but the question remains, why doesn't it accept an output format? Stan

  • 01-22-2007, 1:33 PM In reply to

    You don't have an INTO clause specified in your query, so I imagine the output format is trying to get a handle to STDOUT and failing.

    Try changing your query to "SELECT * INTO foo.xml FROM ." and then see if your ExecuteBatch works.
  • 01-22-2007, 3:37 PM In reply to

    LogParser User : StanL:
    Quote: You don't have an INTO clause specified in your query, so I imagine the output format is trying to get a handle to STDOUT and failing. Try changing your query to "SELECT * INTO foo.xml FROM ." and th...

    My bad, I tried SELECT * FROM . INTO and got an error. Just had my SQL parms out of place. Thank You.  Stan 
Page 1 of 1 (4 items)
Microsoft Communities