on 2012 Feb 02 3:39 PM
I am trying to get a request-level log file into Excel 2007.
Right now I do the following, but while it catches most fields (the quotes in SQL statements cause problems) there are still some messed up. I suspect I could do better with the OUTPUT statement. Does anyone have an OUTPUT they use?
call sa_get_request_times('mydb.rll'); select * from satmp_request_time ORDER BY millisecs desc; output to 'mydb.csv' with column names delimited by ',' quote '"' all format text;
A few suggestions:
2) Try ESCAPES OFF (UNLOAD supports it, presumable OUTPUT does too). As far as I can tell, Excel CSV does not support escapes.
3) Try using XML as the intermediate file.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I ended up using this OUTPUT (a non-standard delimiter that appears nowhere in my result set) (hack):
output to 'test.csv' delimited by '!' escapes off with column names format text
Then in Excel, import using Data > From Text and make sure the delimiter and quote character (single quote, the OUTPUT default) match.
User | Count |
---|---|
71 | |
11 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.