Results 1 to 3 of 3

Thread: Query and Parsing Results

  1. #1
    Join Date
    Jun 2007

    Query and Parsing Results

    First, I'm a complete noob to anything other than basic SQL queries so any help is greatly appreciated.

    I have a project I'm working on that involves analyzing syslog messages from our web filter. It's been pretty simple in getting the data into a SQL table, but now I'm fumbling around with setting up the data analysis portion. The data I need to analyze is space delimited in a single column in the table. I can query the data, but I don't know how to parse the results and insert each field into it's own column in another table.

    Would one of the great SQL gurus around here help a brotha out?


  2. #2
    Join Date
    Sep 2002
    Take look at patindex and charindex function in books online.

  3. #3
    Join Date
    Dec 2004
    If you have a lot of data, a faster way is to use BCP or DTS to export the column of data to a text file, and then use BCP or DTS to import the data back into your target table, defining your column delimiter as a space.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts