C:\Program Files\Log Parser 2.2>logparser -i:w3c "SELECT TO_LOCALTIME(TO_Timesta
mp(REPLACE_STR(STRCAT(STRCAT(date,' '), time),' GMT',''),'yyyy-M-d h:m:s')) as D
ateTime, [Server-hostname], [Recipient-Address],[Event-ID], [total-bytes], [Numb
er-Recipients], TO_LOCALTIME(TO_Timestamp(REPLACE_STR([Origination-time], ' GMT'
,''),'yyyy-M-d h:m:s')) as [Origination Time], [Message-Subject], [Sender-Addres
s] INTO EmailLogs FROM 'C:\20081006.log' where ([Event-ID] = '1033') or ([Event-
ID] = '1020')" -o:SQL -oConnString:"Driver={SQL Native Client};Server="dursql02"
; Database="MscDW"; Trusted_Connection=yes;username=XXXXX;password=XXXXX" -cre
ateTable:ON
Task aborted.
Error connecting to ODBC Server
SQL State: 08001
Native Error: 53
Error Message: [Microsoft][SQL Native Client]Named Pipes Provider: Could
not open a connection to SQL Server [53].
Statistics:
-----------
Elements processed: 0
Elements output: 0
Execution time: 16.17 seconds
________________________________________________________________________
C:\Program Files\Log Parser 2.2>logparser -i:w3c "SELECT TO_LOCALTIME(TO_Timesta
mp(REPLACE_STR(STRCAT(STRCAT(date,' '), time),' GMT',''),'yyyy-M-d h:m:s')) as D
ateTime, [Server-hostname], [Recipient-Address],[Event-ID], [total-bytes], [Numb
er-Recipients], TO_LOCALTIME(TO_Timestamp(REPLACE_STR([Origination-time], ' GMT'
,''),'yyyy-M-d h:m:s')) as [Origination Time], [Message-Subject], [Sender-Addres
s] INTO EmailLogs FROM 'C:\20081006.log' where ([Event-ID] = '1033') or ([Event-
ID] = '1020')" -o:SQL -oConnString:"Driver={SQL Native Client};Server=dursql02;
Database=MscDW; Trusted_Connection=yes;username=XXXXX;password=XXXXX" -createT
able:ON
Task aborted.
An error occurred while uploading data to SQL table
SQL State: 42000
Native Error: 7202
Error Message: [Microsoft][SQL Native Client][SQL Server]Could not find
server 'DURSQL02' in sys.servers. Verify that the correct server name was
specified. If necessary, execute the stored procedure sp_addlinkedserver to
add the server to sys.servers.
Statistics:
-----------
Elements processed: 426
Elements output: 80
Execution time: 0.34 seconds
C:\Program Files\Log Parser 2.2>
Please help