-
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?
Thanks.
-
Take look at patindex and charindex function in books online.
-
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
-
Forum Rules
|
|