<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.iis.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:cs="http://blogs.iis.net/"><channel><title>Search results matching tag 'CSV and TSV input formats'</title><link>http://forums.iis.net/search/SearchResults.aspx?o=DateDescending&amp;tag=CSV+and+TSV+input+formats&amp;orTags=0</link><description>Search results matching tag 'CSV and TSV input formats'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Apostrophe Excape Need in Folder Path - Using Log Parser as an object in vbscript</title><link>http://forums.iis.net/p/1154802/1891897.aspx#1891897</link><pubDate>Sun, 01 Feb 2009 02:09:40 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1891897</guid><dc:creator>Ed Grossheim</dc:creator><cs:applicationKey>input_formats-51</cs:applicationKey><description>&lt;p&gt;&lt;br /&gt;Hi,&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp; I am running logparser, in a vbs script using the logparser object.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;The vbs file that runs logparser is below. It places all the files of a folder (recursing) and places them in a text file.&lt;br /&gt;=============================================&lt;br /&gt;Dim objLogParser, objInputFormat, objOutputFormat, strQuery&lt;br /&gt;Set objLogParser = CreateObject(&amp;quot;MSUtil.LogQuery&amp;quot;)&lt;br /&gt;Set objInputFormat = CreateObject(&amp;quot;MSUtil.LogQuery.FileSystemInputFormat&amp;quot;)&lt;br /&gt;Set objOutputFormat = CreateObject(&amp;quot;MSUtil.LogQuery.TSVOutputFormat&amp;quot;)&lt;/p&gt;
&lt;p&gt;strQuery = &amp;quot;SELECT Name, Size INTO &amp;#39;C:\Ed&amp;#39;s Scripts\Output2.txt&amp;#39; FROM &amp;#39;C:\Tom&amp;#39;s Scripts\Before*.*&amp;#39; ORDER BY Name ASC&amp;quot;&lt;br /&gt;objLogParser.ExecuteBatch strQuery, objInputFormat, objOutputFormat&lt;/p&gt;
&lt;p&gt;Apparently Log Parser cannot handle the apostrophe.&lt;/p&gt;
&lt;p&gt;=============================================&lt;br /&gt;How can I escape any apostrophes in my strQuery?&lt;br /&gt;&amp;nbsp;&lt;br /&gt;(Unfortunately my computer is loaded with folder names with apostrophes I am using XP, and this is the first brick wall I have hit on this subject.)&lt;/p&gt;
&lt;p&gt;In the help file, it says you should be able to escape the apostrophe.&lt;/p&gt;
&lt;p&gt;Like (?):&lt;br /&gt;strQuery = &amp;quot;SELECT Name, Size INTO &amp;#39;C:\Ed\&amp;#39;s Scripts\Output2.txt&amp;#39; FROM &amp;#39;C:\Tom\&amp;#39;s Scripts\Before*.*&amp;#39; ORDER BY Name ASC&amp;quot;&lt;/p&gt;
&lt;p&gt;But LogParser does not understand that the backslash is &amp;quot;escaping the apostrophe&amp;quot;.&lt;/p&gt;
&lt;p&gt;Am I escaping incorrectly?&lt;/p&gt;
&lt;p&gt;I have tried escaping with unicode (U0027) also.&lt;/p&gt;
&lt;p&gt;I have tried everything I can think of. Any help would be greatly appreciated!!!!!!!&lt;/p&gt;
&lt;p&gt;Other than this big obstacle, I am thrilled with the potential of log parser for me !!!!!&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Thanks, Ed&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Query issues with Null field value in TSV format... </title><link>http://forums.iis.net/p/1151960/1880316.aspx#1880316</link><pubDate>Thu, 25 Sep 2008 07:48:39 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1880316</guid><dc:creator>yesubabu</dc:creator><cs:applicationKey>input_formats-51</cs:applicationKey><description>&lt;p&gt;Hello:&lt;/p&gt;
&lt;p&gt;I have an issue in querying TSV format data files with some fields having nulls (no-data). The issue here is that logparser is considering the subsequent field value for the current field and messing up the data format.&lt;/p&gt;
&lt;p&gt;Please verify the query, sampledata and output pasted below to see the problem. Can anyone help with the workaround or fix to this issue? &lt;/p&gt;
&lt;p&gt;Appreciate your help!&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Yesu&lt;/p&gt;
&lt;p&gt;&lt;u&gt;Query:&lt;/u&gt; logparser -i:tsv -o:tsv -q:on &amp;quot;select a,b,c,d from c:\sampledata.txt&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;u&gt;SampleData&lt;/u&gt;:&lt;/p&gt;
&lt;p&gt;
&lt;table class="" style="WIDTH:192pt;BORDER-COLLAPSE:collapse;" cellspacing="0" cellpadding="0"&gt;
&lt;strong&gt;
&lt;/strong&gt;

&lt;tr style="HEIGHT:12.75pt;"&gt;
&lt;td class="xl24" style="BORDER-RIGHT:#ece9d8;BORDER-TOP:#ece9d8;BORDER-LEFT:#ece9d8;WIDTH:48pt;BORDER-BOTTOM:#ece9d8;HEIGHT:12.75pt;BACKGROUND-COLOR:transparent;" class="xl24"&gt;&lt;strong&gt;A&lt;/strong&gt;&lt;/td&gt;
&lt;td class="xl24" style="BORDER-RIGHT:#ece9d8;BORDER-TOP:#ece9d8;BORDER-LEFT:#ece9d8;WIDTH:48pt;BORDER-BOTTOM:#ece9d8;BACKGROUND-COLOR:transparent;" class="xl24"&gt;&lt;strong&gt;B&lt;/strong&gt;&lt;/td&gt;
&lt;td class="xl24" style="BORDER-RIGHT:#ece9d8;BORDER-TOP:#ece9d8;BORDER-LEFT:#ece9d8;WIDTH:48pt;BORDER-BOTTOM:#ece9d8;BACKGROUND-COLOR:transparent;" class="xl24"&gt;&lt;strong&gt;C&lt;/strong&gt;&lt;/td&gt;
&lt;td class="xl24" style="BORDER-RIGHT:#ece9d8;BORDER-TOP:#ece9d8;BORDER-LEFT:#ece9d8;WIDTH:48pt;BORDER-BOTTOM:#ece9d8;BACKGROUND-COLOR:transparent;" class="xl24"&gt;&lt;strong&gt;D&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="HEIGHT:12.75pt;"&gt;
&lt;td class="xl24" style="BORDER-RIGHT:#ece9d8;BORDER-TOP:#ece9d8;BORDER-LEFT:#ece9d8;BORDER-BOTTOM:#ece9d8;HEIGHT:12.75pt;BACKGROUND-COLOR:transparent;" class="xl24"&gt;1&lt;/td&gt;
&lt;td class="xl24" style="BORDER-RIGHT:#ece9d8;BORDER-TOP:#ece9d8;BORDER-LEFT:#ece9d8;BORDER-BOTTOM:#ece9d8;BACKGROUND-COLOR:transparent;" class="xl24"&gt;2&lt;/td&gt;
&lt;td class="xl24" style="BORDER-RIGHT:#ece9d8;BORDER-TOP:#ece9d8;BORDER-LEFT:#ece9d8;BORDER-BOTTOM:#ece9d8;BACKGROUND-COLOR:transparent;" class="xl24"&gt;3&lt;/td&gt;
&lt;td class="xl24" style="BORDER-RIGHT:#ece9d8;BORDER-TOP:#ece9d8;BORDER-LEFT:#ece9d8;BORDER-BOTTOM:#ece9d8;BACKGROUND-COLOR:transparent;" class="xl24"&gt;4&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="HEIGHT:12.75pt;"&gt;
&lt;td class="xl24" style="BORDER-RIGHT:#ece9d8;BORDER-TOP:#ece9d8;BORDER-LEFT:#ece9d8;BORDER-BOTTOM:#ece9d8;HEIGHT:12.75pt;BACKGROUND-COLOR:transparent;" class="xl24"&gt;11&lt;/td&gt;
&lt;td class="xl24" style="BORDER-RIGHT:#ece9d8;BORDER-TOP:#ece9d8;BORDER-LEFT:#ece9d8;BORDER-BOTTOM:#ece9d8;BACKGROUND-COLOR:transparent;" class="xl24"&gt;&lt;/td&gt;
&lt;td class="xl24" style="BORDER-RIGHT:#ece9d8;BORDER-TOP:#ece9d8;BORDER-LEFT:#ece9d8;BORDER-BOTTOM:#ece9d8;BACKGROUND-COLOR:transparent;" class="xl24"&gt;13&lt;/td&gt;
&lt;td class="xl24" style="BORDER-RIGHT:#ece9d8;BORDER-TOP:#ece9d8;BORDER-LEFT:#ece9d8;BORDER-BOTTOM:#ece9d8;BACKGROUND-COLOR:transparent;" class="xl24"&gt;14&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="HEIGHT:12.75pt;"&gt;
&lt;td class="xl24" style="BORDER-RIGHT:#ece9d8;BORDER-TOP:#ece9d8;BORDER-LEFT:#ece9d8;BORDER-BOTTOM:#ece9d8;HEIGHT:12.75pt;BACKGROUND-COLOR:transparent;" class="xl24"&gt;21&lt;/td&gt;
&lt;td class="xl24" style="BORDER-RIGHT:#ece9d8;BORDER-TOP:#ece9d8;BORDER-LEFT:#ece9d8;BORDER-BOTTOM:#ece9d8;BACKGROUND-COLOR:transparent;" class="xl24"&gt;22&lt;/td&gt;
&lt;td class="xl24" style="BORDER-RIGHT:#ece9d8;BORDER-TOP:#ece9d8;BORDER-LEFT:#ece9d8;BORDER-BOTTOM:#ece9d8;BACKGROUND-COLOR:transparent;" class="xl24"&gt;23&lt;/td&gt;
&lt;td class="xl24" style="BORDER-RIGHT:#ece9d8;BORDER-TOP:#ece9d8;BORDER-LEFT:#ece9d8;BORDER-BOTTOM:#ece9d8;BACKGROUND-COLOR:transparent;" class="xl24"&gt;24&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="HEIGHT:12.75pt;"&gt;
&lt;td class="xl24" style="BORDER-RIGHT:#ece9d8;BORDER-TOP:#ece9d8;BORDER-LEFT:#ece9d8;BORDER-BOTTOM:#ece9d8;HEIGHT:12.75pt;BACKGROUND-COLOR:transparent;" class="xl24"&gt;31&lt;/td&gt;
&lt;td class="xl24" style="BORDER-RIGHT:#ece9d8;BORDER-TOP:#ece9d8;BORDER-LEFT:#ece9d8;BORDER-BOTTOM:#ece9d8;BACKGROUND-COLOR:transparent;" class="xl24"&gt;&lt;/td&gt;
&lt;td class="xl24" style="BORDER-RIGHT:#ece9d8;BORDER-TOP:#ece9d8;BORDER-LEFT:#ece9d8;BORDER-BOTTOM:#ece9d8;BACKGROUND-COLOR:transparent;" class="xl24"&gt;&lt;/td&gt;
&lt;td class="xl24" style="BORDER-RIGHT:#ece9d8;BORDER-TOP:#ece9d8;BORDER-LEFT:#ece9d8;BORDER-BOTTOM:#ece9d8;BACKGROUND-COLOR:transparent;" class="xl24"&gt;34&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="HEIGHT:12.75pt;"&gt;
&lt;td class="xl24" style="BORDER-RIGHT:#ece9d8;BORDER-TOP:#ece9d8;BORDER-LEFT:#ece9d8;BORDER-BOTTOM:#ece9d8;HEIGHT:12.75pt;BACKGROUND-COLOR:transparent;" class="xl24"&gt;41&lt;/td&gt;
&lt;td class="xl24" style="BORDER-RIGHT:#ece9d8;BORDER-TOP:#ece9d8;BORDER-LEFT:#ece9d8;BORDER-BOTTOM:#ece9d8;BACKGROUND-COLOR:transparent;" class="xl24"&gt;42&lt;/td&gt;
&lt;td class="xl24" style="BORDER-RIGHT:#ece9d8;BORDER-TOP:#ece9d8;BORDER-LEFT:#ece9d8;BORDER-BOTTOM:#ece9d8;BACKGROUND-COLOR:transparent;" class="xl24"&gt;43&lt;/td&gt;
&lt;td class="xl24" style="BORDER-RIGHT:#ece9d8;BORDER-TOP:#ece9d8;BORDER-LEFT:#ece9d8;BORDER-BOTTOM:#ece9d8;BACKGROUND-COLOR:transparent;" class="xl24"&gt;44&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/p&gt;
&lt;p&gt;&lt;u&gt;Output&lt;/u&gt;:&lt;/p&gt;
&lt;p&gt;
&lt;table class="" style="WIDTH:192pt;BORDER-COLLAPSE:collapse;" cellspacing="0" cellpadding="0"&gt;



&lt;tr style="HEIGHT:12.75pt;"&gt;
&lt;td class="xl24" style="BORDER-RIGHT:#ece9d8;BORDER-TOP:#ece9d8;BORDER-LEFT:#ece9d8;WIDTH:48pt;BORDER-BOTTOM:#ece9d8;HEIGHT:12.75pt;BACKGROUND-COLOR:transparent;" class="xl24"&gt;&lt;strong&gt;A&lt;/strong&gt;&lt;/td&gt;
&lt;td class="xl24" style="BORDER-RIGHT:#ece9d8;BORDER-TOP:#ece9d8;BORDER-LEFT:#ece9d8;WIDTH:48pt;BORDER-BOTTOM:#ece9d8;BACKGROUND-COLOR:transparent;" class="xl24"&gt;&lt;strong&gt;B&lt;/strong&gt;&lt;/td&gt;
&lt;td class="xl24" style="BORDER-RIGHT:#ece9d8;BORDER-TOP:#ece9d8;BORDER-LEFT:#ece9d8;WIDTH:48pt;BORDER-BOTTOM:#ece9d8;BACKGROUND-COLOR:transparent;" class="xl24"&gt;&lt;strong&gt;C&lt;/strong&gt;&lt;/td&gt;
&lt;td class="xl24" style="BORDER-RIGHT:#ece9d8;BORDER-TOP:#ece9d8;BORDER-LEFT:#ece9d8;WIDTH:48pt;BORDER-BOTTOM:#ece9d8;BACKGROUND-COLOR:transparent;" class="xl24"&gt;&lt;strong&gt;D&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="HEIGHT:12.75pt;"&gt;
&lt;td class="xl24" style="BORDER-RIGHT:#ece9d8;BORDER-TOP:#ece9d8;BORDER-LEFT:#ece9d8;BORDER-BOTTOM:#ece9d8;HEIGHT:12.75pt;BACKGROUND-COLOR:transparent;" class="xl24"&gt;1&lt;/td&gt;
&lt;td class="xl24" style="BORDER-RIGHT:#ece9d8;BORDER-TOP:#ece9d8;BORDER-LEFT:#ece9d8;BORDER-BOTTOM:#ece9d8;BACKGROUND-COLOR:transparent;" class="xl24"&gt;2&lt;/td&gt;
&lt;td class="xl24" style="BORDER-RIGHT:#ece9d8;BORDER-TOP:#ece9d8;BORDER-LEFT:#ece9d8;BORDER-BOTTOM:#ece9d8;BACKGROUND-COLOR:transparent;" class="xl24"&gt;3&lt;/td&gt;
&lt;td class="xl24" style="BORDER-RIGHT:#ece9d8;BORDER-TOP:#ece9d8;BORDER-LEFT:#ece9d8;BORDER-BOTTOM:#ece9d8;BACKGROUND-COLOR:transparent;" class="xl24"&gt;4&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="HEIGHT:12.75pt;"&gt;
&lt;td class="xl24" style="BORDER-RIGHT:#ece9d8;BORDER-TOP:#ece9d8;BORDER-LEFT:#ece9d8;BORDER-BOTTOM:#ece9d8;HEIGHT:12.75pt;BACKGROUND-COLOR:transparent;" class="xl24"&gt;11&lt;/td&gt;
&lt;td class="xl25" style="BORDER-RIGHT:#ece9d8;BORDER-TOP:#ece9d8;BORDER-LEFT:#ece9d8;BORDER-BOTTOM:#ece9d8;BACKGROUND-COLOR:transparent;" class="xl25"&gt;&lt;strong&gt;&lt;font color="#ff0000"&gt;13&lt;/font&gt;&lt;/strong&gt;&lt;/td&gt;
&lt;td class="xl25" style="BORDER-RIGHT:#ece9d8;BORDER-TOP:#ece9d8;BORDER-LEFT:#ece9d8;BORDER-BOTTOM:#ece9d8;BACKGROUND-COLOR:transparent;" class="xl25"&gt;&lt;strong&gt;&lt;font color="#ff0000"&gt;14&lt;/font&gt;&lt;/strong&gt;&lt;/td&gt;
&lt;td class="xl24" style="BORDER-RIGHT:#ece9d8;BORDER-TOP:#ece9d8;BORDER-LEFT:#ece9d8;BORDER-BOTTOM:#ece9d8;BACKGROUND-COLOR:transparent;" class="xl24"&gt;&lt;strong&gt;&lt;font color="#ff0000"&gt;&lt;/font&gt;&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="HEIGHT:12.75pt;"&gt;
&lt;td class="xl24" style="BORDER-RIGHT:#ece9d8;BORDER-TOP:#ece9d8;BORDER-LEFT:#ece9d8;BORDER-BOTTOM:#ece9d8;HEIGHT:12.75pt;BACKGROUND-COLOR:transparent;" class="xl24"&gt;21&lt;/td&gt;
&lt;td class="xl24" style="BORDER-RIGHT:#ece9d8;BORDER-TOP:#ece9d8;BORDER-LEFT:#ece9d8;BORDER-BOTTOM:#ece9d8;BACKGROUND-COLOR:transparent;" class="xl24"&gt;22&lt;/td&gt;
&lt;td class="xl24" style="BORDER-RIGHT:#ece9d8;BORDER-TOP:#ece9d8;BORDER-LEFT:#ece9d8;BORDER-BOTTOM:#ece9d8;BACKGROUND-COLOR:transparent;" class="xl24"&gt;23&lt;/td&gt;
&lt;td class="xl24" style="BORDER-RIGHT:#ece9d8;BORDER-TOP:#ece9d8;BORDER-LEFT:#ece9d8;BORDER-BOTTOM:#ece9d8;BACKGROUND-COLOR:transparent;" class="xl24"&gt;24&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="HEIGHT:12.75pt;"&gt;
&lt;td class="xl24" style="BORDER-RIGHT:#ece9d8;BORDER-TOP:#ece9d8;BORDER-LEFT:#ece9d8;BORDER-BOTTOM:#ece9d8;HEIGHT:12.75pt;BACKGROUND-COLOR:transparent;" class="xl24"&gt;31&lt;/td&gt;
&lt;td class="xl25" style="BORDER-RIGHT:#ece9d8;BORDER-TOP:#ece9d8;BORDER-LEFT:#ece9d8;BORDER-BOTTOM:#ece9d8;BACKGROUND-COLOR:transparent;" class="xl25"&gt;&lt;strong&gt;&lt;font color="#ff0000"&gt;34&lt;/font&gt;&lt;/strong&gt;&lt;/td&gt;
&lt;td class="xl24" style="BORDER-RIGHT:#ece9d8;BORDER-TOP:#ece9d8;BORDER-LEFT:#ece9d8;BORDER-BOTTOM:#ece9d8;BACKGROUND-COLOR:transparent;" class="xl24"&gt;&lt;strong&gt;&lt;font color="#ff0000"&gt;&lt;/font&gt;&lt;/strong&gt;&lt;/td&gt;
&lt;td class="xl24" style="BORDER-RIGHT:#ece9d8;BORDER-TOP:#ece9d8;BORDER-LEFT:#ece9d8;BORDER-BOTTOM:#ece9d8;BACKGROUND-COLOR:transparent;" class="xl24"&gt;&lt;strong&gt;&lt;font color="#ff0000"&gt;&lt;/font&gt;&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="HEIGHT:12.75pt;"&gt;
&lt;td class="xl24" style="BORDER-RIGHT:#ece9d8;BORDER-TOP:#ece9d8;BORDER-LEFT:#ece9d8;BORDER-BOTTOM:#ece9d8;HEIGHT:12.75pt;BACKGROUND-COLOR:transparent;" class="xl24"&gt;41&lt;/td&gt;
&lt;td class="xl24" style="BORDER-RIGHT:#ece9d8;BORDER-TOP:#ece9d8;BORDER-LEFT:#ece9d8;BORDER-BOTTOM:#ece9d8;BACKGROUND-COLOR:transparent;" class="xl24"&gt;42&lt;/td&gt;
&lt;td class="xl24" style="BORDER-RIGHT:#ece9d8;BORDER-TOP:#ece9d8;BORDER-LEFT:#ece9d8;BORDER-BOTTOM:#ece9d8;BACKGROUND-COLOR:transparent;" class="xl24"&gt;43&lt;/td&gt;
&lt;td class="xl24" style="BORDER-RIGHT:#ece9d8;BORDER-TOP:#ece9d8;BORDER-LEFT:#ece9d8;BORDER-BOTTOM:#ece9d8;BACKGROUND-COLOR:transparent;" class="xl24"&gt;44&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: input format help needed</title><link>http://forums.iis.net/p/1150522/1874495.aspx#1874495</link><pubDate>Mon, 21 Jul 2008 07:10:59 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1874495</guid><dc:creator>yellowdog.dave</dc:creator><cs:applicationKey>input_formats-51</cs:applicationKey><description>&lt;p&gt;Hi There,&amp;nbsp;&lt;/p&gt;&lt;p&gt;I am not familiar with HL7 logs, but if they are just a text file with | delimited data, then you can use logparser to pump it straight into your Access database. You can also let logparser determine your data types from the data, so that you will not need to do a data import into Access. Look at the&amp;quot;TSV input Format Parameters&amp;quot; in the logparser.chm help file to get the specifics for the dtLines (data type lines). There are also numerous other parameters which I find useful when parsing non-standard type data. The header line is also very useful to give your elements meaningful names when dealing with each field. The default values of these parameters are generally good to go. &lt;/p&gt;&lt;p&gt;The following example will pump | delimited data straight into and Access database table. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;LogParser&amp;nbsp; -i:tsv -iseparator:&amp;quot;|&amp;quot; &amp;quot;select * INTO MyTable FROM sample.hl7&amp;quot;&amp;nbsp; -o:SQL -oConnString:&amp;quot;Driver={Microsoft &lt;font color="#ffffff"&gt;Access&lt;/font&gt; Driver (*.mdb)};Dbq=C:\MyDB\MyDB.mdb;Uid=MyUsername;Pwd=MyPassword&amp;quot;&amp;nbsp;
&lt;/p&gt;&lt;p&gt;A quick observation for you; why not use logparser to directly analyse the HL7 data? When you get more familiar and start seeing the speed of the processing and start looking into the advanced features in the product, you will find the file checkpointing, multiplexing files, charting of output, creation of web pages for reporting etc etc very useful. This literally obviates the intermediate step of having to transform data from one format to another.&amp;nbsp; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Good luck and enjoy.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Cheers, Dave&amp;nbsp; &lt;br /&gt;&lt;/p&gt;</description></item><item><title>zipped csv files as input</title><link>http://forums.iis.net/p/1149963/1872105.aspx#1872105</link><pubDate>Thu, 19 Jun 2008 10:53:33 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1872105</guid><dc:creator>juergmaier</dc:creator><cs:applicationKey>input_formats-51</cs:applicationKey><description>&lt;p&gt;&amp;nbsp;Hi&lt;/p&gt;&lt;p&gt;Any plugin available that will allow to parse zipped files?&lt;/p&gt;&lt;p&gt;&amp;nbsp;Jürg &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Cisco Pix logs</title><link>http://forums.iis.net/p/1149702/1871003.aspx#1871003</link><pubDate>Wed, 04 Jun 2008 19:43:16 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1871003</guid><dc:creator>altair4</dc:creator><cs:applicationKey>input_formats-51</cs:applicationKey><description>&lt;p&gt;&amp;nbsp;The goal here is to craft a query whereby an IP address is suppled, and the result returned is a list of all urls accessed.&amp;nbsp; The syslog file is a text file, tab-delimited, in the following format:&lt;/p&gt;&lt;p&gt;&lt;br /&gt;2008-05-21 08:49:58&amp;nbsp;&amp;nbsp;&amp;nbsp; Local6.Notice&amp;nbsp;&amp;nbsp;&amp;nbsp; 10.13.30.2&amp;nbsp;&amp;nbsp;&amp;nbsp; %PIX-5-304001: 10.17.90.10 Accessed URL 206.190.50.59:/serv?s=150550015&amp;amp;dm=&amp;amp;t=0.9166543242483984&amp;amp;t_e=1&lt;br /&gt;2008-05-21 08:49:59&amp;nbsp;&amp;nbsp;&amp;nbsp; Local6.Notice&amp;nbsp;&amp;nbsp;&amp;nbsp; 10.13.30.2&amp;nbsp;&amp;nbsp;&amp;nbsp; %PIX-5-304001: 10.17.40.58 Accessed URL 65.175.87.137:/a/hBINA-xAdIUrHB7REIJBNCvLK.AdIUrHSd/spacer-1.gif&lt;br /&gt;2008-05-21 08:49:59&amp;nbsp;&amp;nbsp;&amp;nbsp; Local6.Info&amp;nbsp;&amp;nbsp;&amp;nbsp; 10.13.30.2&amp;nbsp;&amp;nbsp;&amp;nbsp; %PIX-6-302014: Teardown TCP connection 122281117 for outside:65.175.87.137/80 to inside:10.17.40.58/2385 duration 0:00:01 bytes 804 TCP FINs&lt;br /&gt;2008-05-21 08:50:00&amp;nbsp;&amp;nbsp;&amp;nbsp; Local6.Info&amp;nbsp;&amp;nbsp;&amp;nbsp; 10.13.30.2&amp;nbsp;&amp;nbsp;&amp;nbsp; %PIX-6-305011: Built dynamic TCP translation from inside:10.17.50.70/1614 to outside:216.185.22.100/47811&lt;br /&gt;2008-05-21 08:50:00&amp;nbsp;&amp;nbsp;&amp;nbsp; Local6.Info&amp;nbsp;&amp;nbsp;&amp;nbsp; 10.13.30.2&amp;nbsp;&amp;nbsp;&amp;nbsp; %PIX-6-302013: Built outbound TCP connection 122281118 for outside:206.16.21.33/80 (206.16.21.33/80) to inside:10.17.50.70/1614 (216.185.22.100/47811)&lt;br /&gt;2008-05-21 08:50:00&amp;nbsp;&amp;nbsp;&amp;nbsp; Local6.Info&amp;nbsp;&amp;nbsp;&amp;nbsp; 10.13.30.2&amp;nbsp;&amp;nbsp;&amp;nbsp; %PIX-6-305011: Built dynamic TCP translation from inside:10.17.50.70/1615 to outside:216.185.22.100/47812 &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The query is something along the lines of :&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Logparser -i:tsv &amp;quot;Select * FROM file\path&amp;nbsp; WHERE Field4 Like&amp;nbsp; &amp;quot;inside:10.17.90.78&amp;quot; -iSeparator:tab -headerRow:off &lt;/p&gt;&lt;p&gt;Field4 returns the &amp;quot;%&amp;quot; sign and everything to the right of it.&amp;nbsp; I guess what I need is to tokenize the string and search for IP&amp;#39;s but I am not sure how to go about that.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Any ideas greatly appreciated.&amp;nbsp;&lt;/p&gt;</description></item><item><title>comma as decimal point in number</title><link>http://forums.iis.net/p/1149254/1869079.aspx#1869079</link><pubDate>Thu, 08 May 2008 09:57:17 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1869079</guid><dc:creator>JosefVr</dc:creator><cs:applicationKey>input_formats-51</cs:applicationKey><description>&lt;p&gt;Does logparser support localized numbers (decimal point is comma) in csv file? If so, is there anything special needs to be done to get this going?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;</description></item><item><title>RE: textfile to textfile - need help</title><link>http://forums.iis.net/p/1146044/1855280.aspx#1855280</link><pubDate>Fri, 15 Jun 2007 15:45:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1855280</guid><dc:creator>LogParser User : Jeff</dc:creator><cs:applicationKey>input_formats-51</cs:applicationKey><description>&lt;P&gt;Graham is correct, out of the box Log Parser won't do what you want.&amp;nbsp; That said, the format looks pretty simple.&amp;nbsp; If you can write a little bit of VBScript (or JScript), you could make a custom input parser (which would allow you to take advantage of the rest of Log Parser's features.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>RE: textfile to textfile - need help</title><link>http://forums.iis.net/p/1146044/1855262.aspx#1855262</link><pubDate>Fri, 15 Jun 2007 07:45:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1855262</guid><dc:creator>LogParser User : gpl</dc:creator><cs:applicationKey>input_formats-51</cs:applicationKey><description>&lt;P&gt;Unfortunately, Logparser cannot really deal with multine type records; your best bet is to use a short vbscript to reformat it&lt;/P&gt;&lt;P&gt;Graham&lt;/P&gt;</description></item><item><title>textfile to textfile - need help</title><link>http://forums.iis.net/p/1146044/1851256.aspx#1851256</link><pubDate>Fri, 15 Jun 2007 06:00:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1851256</guid><dc:creator>LogParser User : clavis</dc:creator><cs:applicationKey>input_formats-51</cs:applicationKey><description>&lt;P&gt;I am beginner - hope anyone can advise me. Have&amp;nbsp;following textfile &lt;/P&gt;&lt;P&gt;&lt;BR&gt;&lt;FONT size=1&gt;!Subject,!From,!Date,!Lines,!Body &lt;BR&gt;Subject:aaa &lt;BR&gt;From:bbb &lt;BR&gt;Date:ccc &lt;BR&gt;Lines:ddd &lt;BR&gt;Body:eee &lt;BR&gt;......body &lt;BR&gt;lines..... &lt;BR&gt;!Subject,!From,!Date,!Lines,!Body &lt;BR&gt;Subject:fff &lt;BR&gt;From:ggg &lt;BR&gt;Date:hhh &lt;BR&gt;Lines:iii &lt;BR&gt;Body:jjj &lt;BR&gt;......body &lt;BR&gt;lines.....&amp;nbsp;&lt;BR&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and want&amp;nbsp;new textfile&amp;nbsp;(ready to import into MS-Access):&amp;nbsp;&lt;BR&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size=1&gt;"Subject","From","Date","Lines","Body" &lt;BR&gt;"aaa","bbb","ccc","ddd","eee","......bodylines....."CR/LF &lt;BR&gt;"fff","ggg","hhh","iii","jjj","......bodylines....."CR/LF&lt;/FONT&gt;&amp;nbsp;&lt;BR&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Possible in LogParser ?&lt;/P&gt;&lt;P&gt;In advance thank you&amp;nbsp;&lt;img src='images/emotions/smile.gif' height='20' width='20' border='0' title='Smile' align='absmiddle'&gt;&lt;/P&gt;</description></item><item><title>Time between TimeStamp &amp; System_Time</title><link>http://forums.iis.net/p/1146035/1851247.aspx#1851247</link><pubDate>Wed, 06 Jun 2007 01:05:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1851247</guid><dc:creator>LogParser User : Glassdrum</dc:creator><cs:applicationKey>input_formats-51</cs:applicationKey><description>Hello All,&lt;br&gt;I have a question about how to calculate the time elapsed between the log file timestamp and the current system time.  I have a log file in the format shown below and the StartTime is the time in which a software license was checked out. &lt;br&gt;&lt;br&gt;    BXW01 McWhorter-B01 McWhorter-B01 (v1.000) (CDCLM1/27001 2701), start Fri 6/1 10:52&lt;br&gt;    JMR01 ROSETTI-J01 ROSETTI-J01 (v1.000) (CDCLM1/27001 1301), start Fri 6/1 10:52&lt;br&gt;    JRS01 Sikes-JR01 Sikes-JR01 (v1.000) (CDCLM1/27001 3404), start Fri 6/1 10:56&lt;br&gt;    SAE01 Prech-m204 Prech-m204 (v1.000) (CDCLM1/27001 4409), start Fri 6/1 16:22&lt;br&gt;    TLB03 BAUGH-TIM-01 BAUGH-TIM-01 (v1.000) (CDCLM1/27001 3801), start Fri 6/1 11:04&lt;br&gt;    TXC05 Chea-Tony Chea-Tony (v1.000) (CDCLM1/27001 2608), start Fri 6/1 16:34&lt;br&gt;    axb03 BALDWIN-A01 BALDWIN-A01 (v1.000) (CDCLM1/27001 5303), start Fri 6/1 16:34&lt;br&gt;    bws02 40SMITH-BRIANW 40SMITH-BRIANW (v1.000) (CDCLM1/27001 5201), start Fri 6/1 11:32&lt;br&gt;    cgv01 VIER-C01 VIER-C01 (v1.000) (CDCLM1/27001 1402), start Fri 6/1 16:02&lt;br&gt;    cocotp COCOTP023 COCOTP023 (v1.000) (CDCLM1/27001 5710), start Fri 6/1 12:19&lt;br&gt;&lt;br&gt;&lt;br&gt;I would like to know how long each user has used a particular license.  Therefore, I would like to have LP return the below format but also ADD a column for the calculated time elapsed between the StartTime and the System Time in xx(days) xx(hours) xx(min).  I can get the results shown below.  Now I am working to calculate and output the elapsed time only and am stuck.&lt;br&gt;&lt;br&gt;User	Machinename	Version	        StartTime&lt;br&gt;BXW01	McWhorter-B01	(v1.000)	6/5 10:52&lt;br&gt;JMR01	ROSETTI-J01	(v1.000)	6/5 10:52&lt;br&gt;JRS01	Sikes-JR01	(v1.000)	6/5 10:56&lt;br&gt;SAE01	Prech-m204	(v1.000)	6/5 16:22&lt;br&gt;TLB03	BAUGH-TIM-01	(v1.000)	6/5 11:04&lt;br&gt;TXC05	Chea-Tony	(v1.000)	6/5 16:34&lt;br&gt;axb03	BALDWIN-A01	(v1.000)	6/5 16:34&lt;br&gt;bws02	40SMITH-BRIANW	(v1.000)	6/5 11:32&lt;br&gt;cgv01	VIER-C01	(v1.000)	6/5 16:02&lt;br&gt;cocotp	COCOTP023	(v1.000)	6/5 12:19&lt;br&gt;&lt;br&gt;I have tried the command:&lt;br&gt;&lt;br&gt;LogParser -i:TSV -iSeparator:space -iTsFormat:"M/d h:mm" "SELECT SUB(TIMESTAMP('StartTime', 'M/d h:mm'), SYSTEM_TIMESTAMP()) INTO users.tmp FROM users.log"&lt;br&gt;&lt;br&gt;and I get in return  Error: Syntax Error: (value): Invalid month in timestamp "StartTime"&lt;br&gt;&lt;br&gt;After scouring the KB and Forums I haven't found anything like what I'm trying to do.  Do I need to convert the Timestamp to an Integer then calculate the difference?&lt;br&gt;&lt;br&gt;Any help is much appreciated.</description></item></channel></rss>