Apologies for sharing little information than needed. Should have provided the entire thing. Here's it.
we are sending pre-check patching information from many DB's via a tool to some logs on another server, that server has the main DB which will store this info for comparing later on. We are using the tags "<>" to make our statements unique for identification.
The logfile info will look like this:
StepLog:Info: dbname instance_name hostname objnames and so on..
From the database on that server, how do I extract only the values between the tags to store/insert in a table, and skip the tags. Since the info will me from multiple DB's cannot hard quote info.
Thanks.
Based on the solution with regexp split you may run following query.
Note however, that you must know the maximal number of the resulting columns in advance.
This gives you the row, column and key view:
You may use the PIVOT query to get the result in flat table
Again, as you see you must list all the resulting columns in the query.