« Previous Next »

Thread: Why is the SQL output target so slow?

Last post 08-08-2009 11:34 PM by PWills. 0 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (1 items)

Sort Posts:

  • 08-08-2009, 11:34 PM

    • PWills
    • Not Ranked
    • Joined on 08-08-2009, 11:29 PM
    • Posts 1

    Why is the SQL output target so slow?

    Frustrated with the speed of the SQL output directives, I just ran a little experiment. I used -o:sql to dump a log query on a 10MB IIS file. It took 2:30 (I'm using the COM wrapper). I then used the "interactive mode" in COM, assembled a System.Data.DataTable by hand, and then used System.Data.SqlClient.SqlBulkCopy to bulk insert to the database. It took 18ms. I don't understand why LogParser's -o:sql output directive is over 8000x slower than my crappy code. Am I doing something wrong, or is this a known issue? I'm using SQL Server 2008, if that makes any difference.
Page 1 of 1 (1 items)
Microsoft Communities