When we moved from SA9 to SA11 one of the biggest complaints from developers and users was the loss of the feature in SQL Central to save data to an excel format. This was almost a staple for support team members who frequently ran queries for our customers and sent them data via spreadsheets.
Now the nearest feature is saving as HTML and then reprocessing the HTML into a spreadsheet - but this introduces a number of formatting and conversion steps.
Is there any chance this feature may return in a future version of SQL Central - or is there an alternate way to get the data into excel more quickly?
I assume you mean Sybase Central. However, I don't see where in Sybase Central you can save data in any format, let alone Excel.
If you launch ISQL and do a SELECT, there is a Data - Export facility that omits Excel... is that what you are talking about?
Anyway, ISQL has (regained? or never actually lost?) the ability to OUTPUT to Excel in 184.108.40.20687...
select @@VERSION, * from inventory; OUTPUT USING 'Driver=Microsoft Excel Driver (*.xls);DBQ=c:\\temp\\inventory.xls;READONLY=0' INTO "inventory";
It doesn't appear to be documented in the V11 Help, although I did test it (see below), but it is documented in the V12 Help: http://dcx.sybase.com/index.html#1201/en/dbusage/load-s-4183756.html
I wanted to followup with a note that clarifies why this continues to be an issue.
The problem with the CSV or HTML outout is the problem with Text values which are numeric. When output in the old excel format , these opened fine. When output at CSV or HTML you can't just open these with excel because it converts the values to numeric and strips leading zeros.
To handle this correctly you have to export a tab separated file and use the Excel Import - specifying the datatype of individual columns. A huge PITA which we need to do frequently.
Please bring back the excel export format...
answered 19 Mar '12, 22:45
We usually export and choose the delimited text file option. We check the box to include column names and the default is to separate fields with a comma so the resulting file can be opened in excel as a .csv.
I'm not sure if that meets your needs. I did not work much with version 9 so perhaps I cannot miss what I never had...
answered 25 Jul '11, 15:19