Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

need help with a query please

Status
Not open for further replies.

mst3k

IS-IT--Management
Apr 29, 2002
41
0
0
US

I am tying to get logparser to work with sending the total of sc-bytes to a sql database, and I am having pretty good luck, but was hoping for some help..

When I run the code below (for each domain) it creates a table called 'w3svc1', I run that command from a batch file, and there are many sites that it does this on, I would much rather have this thing send all the data to the same table, and just have two columns, bandwidth & w3svc#, that way when I export to excel or whatever it's not all individual worksheets.
I am hoping that makes sense :) Here's the code I use:

logparser "Select SUM(sc-bytes) AS TotalBytes FROM D:\logfiles\w3\W3SVC1\ex0312*.log TO W3SVC1" -i:W3C -o:SQL -server:x.x.x.x -driver:"SQL Server" -database:billing -username:billing -password:**** -createtable:ON


Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top