CSV Input Format From-Entity Syntax

Log Parser

CSV Input Format From-Entity Syntax

<from-entity> ::= <filename> [ , <filename> ... ] |
http://<url> |
STDIN
The <from-entity> specified in queries using the CSV input format is either:
  • A comma-separated list of paths of CSV files, eventually including wildcards;
  • The URL of a file in the CSV format;
  • The "STDIN" keyword, which specifies that the input data is available from the input stream (commonly used when piping command executions).

Examples:

FROM LogFiles1\*.csv, LogFiles2\*.csv, \\MyServer\FileShare\*.csv
FROM http://www.microsoft.adatum.com/MyCSVFiles/example.csv
type data.csv | LogParser "SELECT * FROM STDIN" -i:CSV


© 2004 Microsoft Corporation. All rights reserved.