PC Review


Reply
 
 
JB
Guest
Posts: n/a
 
      17th Jan 2007
can anyone help me do a wild card sql query on a log file?

here is my attempt:


LogParser "SELECT Text, COUNT(*) FROM c:\srq723.txt where (text
='Local4.Critical') OR (text like'Local4.%') GROUP BY Text ORDER BY
COUNT(*) DESC" -i:TEXTWORD


it gives me this:


C:\Program Files\Log Parser 2.2>LogParser "SELECT Text, COUNT(*) FROM
c:\srq723.
txt where (text ='Local4.Critical') OR (text like'Local4.TEXTWORD
Error: Syntax Error: <expression>: OR operator not followed by an
<expression>

 
Reply With Quote
 
 
 
 
Ragnar Midtskogen
Guest
Posts: n/a
 
      17th Jan 2007
If what you post is exactly wht you are using, then there is no space
between "text" and "Like" in the (text like'Local4.%') string.

Ragnar


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Links broken but not broken Ronx Microsoft Frontpage 0 22nd Jan 2009 04:46 PM
Lots of problems - regedit is broken, taskbar is misbehaving, audio is broken.. HELP! Elspeth Windows Vista General Discussion 3 2nd Jul 2008 11:19 PM
Search broken...extended views broken. =?Utf-8?B?TWFyayBCb3dsZXM=?= Windows XP Help 1 21st Sep 2005 06:59 AM
Broken address toolbar and broken run dialog. Daniel Windows XP Internet Explorer 1 11th Aug 2003 06:17 PM
Broken address toolbar and broken run dialog Daniel Bond Windows XP Networking 0 11th Aug 2003 02:13 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:38 AM.