Wrong query results: due to date format?

hello,
I have oracle 11 and when I execute this query:
select MYDATE from mytable order by MYDATE DESC;
it get me a bad order:
MYDATE
25-MAR-09
13-MAR-09
10-MAR-10
10-MAR-10
31-JAN-10
29-JAN-10
28-JAN-10
08-DEC-09
07-DEC-09
06-DEC-09
05-DEC-09
is it may due to a wrong date format?
where have I to look out? init.ora?

But, there is no problem at my end (Using Oracle 10.2.0.1 on win xp):
SQL> create table t(mydate date);
Table created.
SQL> insert into t values(to_date('25-MAR-09','DD-MON-YY'));
1 row created.
SQL> insert into t values(to_date('13-MAR-09','DD-MON-YY'));
1 row created.
SQL> insert into t values(to_date('31-JAN-10','DD-MON-YY'));
1 row created.
SQL> insert into t values(to_date('07-DEC-09','DD-MON-YY'));
1 row created.
SQL> insert into t values(to_date('05-DEC-09','DD-MON-YY'));
1 row created.
SQL> insert into t values(to_date('06-DEC-09','DD-MON-YY'));
1 row created.
SQL> insert into t values(to_date('08-DEC-09','DD-MON-YY'));
1 row created.
SQL> insert into t values(to_date('10-MAR-09','DD-MON-YY'));
1 row created.
SQL> insert into t values(to_date('29-JAN-10','DD-MON-YY'));
1 row created.
SQL> insert into t values(to_date('10-MAR-10','DD-MON-YY'));
1 row created.
SQL> insert into t values(to_date('28-JAN-10','DD-MON-YY'));
1 row created.
SQL> select * from t;
MYDATE
25-MAR-09
13-MAR-09
31-JAN-10
07-DEC-09
05-DEC-09
06-DEC-09
08-DEC-09
10-MAR-09
29-JAN-10
10-MAR-10
28-JAN-10
11 rows selected.
SQL> SELECT MYDATE FROM T ORDER BY MYDATE DESC;
MYDATE
10-MAR-10
31-JAN-10
29-JAN-10
28-JAN-10
08-DEC-09
07-DEC-09
06-DEC-09
05-DEC-09
25-MAR-09
13-MAR-09
10-MAR-09
11 rows selected.
SQL> SHOW PARAMETER NLS_DATE;
NAME                                 TYPE        VALUE
nls_date_format                      string
nls_date_language                    stringCan you show us the output of
show parameter nls_date;
Regards
Girish Sharma

Similar Messages

  • Save query results in pipe delimited format

    I am running a query in SQL Developer. Can you please tell me how to save and/or export the results in pipe delimited format? Thanks....

    You just need to right click in the results grid, then chose export and complete the following wizard.
    For pipe delimited files the file format should be delimited and then you will need to change the "delimiter" to a pipe.

  • SQL query result with HTML Data in output

    Hello,
    I have a SQL table , in one column I store HTML data. I need to query the table and get the HTML data in the columns that have 'HREF'. The output shows as grid on the sql management studio, however when I export it to excel, the HTML data does not get copied
    correctly, since there are HTML tags etc.
    How can I export the report correctly from SQL ?

    Hello,
    The HTML data is stored in a column with datatype as nvarchar(max). Sample data in the column is shown below. It is with formatting etc and is rendered as is on the web page. the business wants to generate a quick report so that they can see the pages that
    have links displayed. I can do that by querying the columns that have a 'HREF' in the text.
    Can I get the exact HREF values using just sql query? There can be more than one links on a page.
    Also, If I just want to copy the whole column and paste it on excel, how can I do that? If I copy the data below and paste, it does not get copied in one cell.. it spreads across multiple cells, so the report does not make any sense.
    <br />
    <table border="0" cellpadding="0" cellspacing="0" style="width: 431pt; border-collapse: collapse;" width="574">
    <tbody>
    <tr height="19" style="height: 14.25pt; ">
    <td height="19" style="border: 0px blue; width: 431pt; height: 14.25pt; background-color: transparent;" width="574"><a href="https:"><u><font color="#0066cc" face="Calibri">ax </font></u></a></td>
    </tr>
    </tbody>
    <colgroup>
    <col style="width: 431pt; " width="574" />
    </colgroup>
    </table>

  • Bug: query results sometimes lose line formatting

    Steps:
    1. Run a query on "arraycollection adobe flex null pointer"
    Result: the 2nd search result "Flex 3 - Using the HitData object" from http://livedocs.adobe.com/flex/3/html/charts_eventsandeffects_03.html has all the line-ends removed (see 1st screenshot). When I go to the URL, the code looks OK (see 2nd screenshot), so it seems likely that Blueprint is somehow mangling the file.

    Thanks for you feedback! We have filed a bug to address code formatting problems. Stay tuned for the next release.
    Mira Dontcheva
    Research Scientist
    Adobe Systems

  • Wrong query result

    Hi,
    I have an issue with the key figures (Net value total) defined in my query when there are multiple rows for a sales document/item. Here is the scenario which explains the problem.
    Salesdoc Itemno net value sold to contact ID
    3200 10 3000 ST0001 CT0001
    3200 10 3000 ST0001 CT0002
    3200 10 3000 ST0001 CT0003
    Base on the above scenario, if I run the query and see the result for the Net value total of a sales document, it is showing up as $9000 (as there are 3 contact ID’s). The contacts are actually stored in a different ODS object. And this ODS object has been linked to the sales ODS object using an Infoset. And the query built on this infoset is causing this issue.
    Please let me know if there is any workaround for this issue (The above scenario I mentioned is the result of the info set after combining data from Contact ODS and Sales ODS. And I don’t want to store the data in a separate ODS keeping the net value as $3000 for the first row and 0’s for the rest of the two rows, to resolve this issue).
    Appreciate your help on this!
    Thanks
    MM.
    Message was edited by: tony

    i have a very simple example.
    public class Simple {
    private Integer id;
    private String text;
    public Integer getId() {
    return id;
    public void setId(Integer id) {
    this.id = id;
    public String getText() {
    return text;
    public void setText(String text) {
    this.text = text;
    and the query is
    ReadObjectQuery query = new ReadObjectQuery();
    query.setReferenceClass(Simple.class);
    query.conformResultsInUnitOfWork();
    Simple simple = new Simple();
    simple.setText("c");
    query.setExampleObject(simple);
    the database tabel has 5 rows
    1,a
    2,b
    3,c
    4,a
    5,a
    before i execute the query i change the text
    from the simple object ( from "c" to "x")
    after execute
    i get the object with id 5 and text "a"

  • WRONG QUERY RESULT WITH REPORTQUERIES AS SUBQUERIES

    hi,
    i create a ReadAllObject - Query with
    a ReportQuery as SubQuery.
    when execute the query the result at the SubQuery
    contains the data from the database.
    the result does not contain the change of these
    data in memory of the aplication.
    method public void conformResultsInUnitOfWork()
    has no effect
    i have a simple example
    public class A{
    private int id;
    private String name;
    private Collection B = new ArrayList();
    public class B{
    private int id;
    private String name;
    private C c ;
    public class C{
    private int id;
    private String name;
    and the query is
    ReadAllQuery query = new ReadAllQuery();
    query.setReferenceClass(A.class);
    ReportQuery subQuery = new ReportQuery(A.class, subQueryEb);
    subQuery.addAttribute("id");
    subQuery.setSelectionCriteria(eb.anyOf("B").get("C").get("name").equal("Test")));
    query.querysetSelectionCriteria (eb.get("id").notExists(subQuery));

    Conforming subqueries and report queries are not supported in memory. You should be getting an exception thrown stating this.
    Your code does not show the call to conform, make sure it is on the root query, not the subquery.

  • Access 2010 InfoPath Data Collection Export Fails Due to Date Format That Includes Time Zone

    I created an Access 2010 database that has multiple data collection (InfoPath) forms that were generated from Access and have been in use for about 1.5 years.  Starting in 2013 (for about a week now), the submitted data fails to Export due
    to a "data type conversion error" with the date fields.  Prior to 2013, the date string returned in the InfoPath form looked like this: "2013-01-07T00:00:00", but now it looks like this: "2013-01-07T00:00:00-05:00".  The time zone is appended
    to the string and it kills the Outlook Export feature.
    To test this, I created a new database with one table and one date time field.  I generated an InfoPath template and emailed it to myself.  I entered the date into the template and submitted it (tried manually entering the date as well as
    using the date time picker control - made no difference).  The InfoPath template now contains "2013-01-07T00:00:00-05:00" and will not Export from Outlook to Access.  I tried manually pasting the string into the Access table and it would take it,
    but would show "1/7/2013 5:00:00 AM" in the date time field (which isn't correct either but at least it took).  Note: This problem has appeared at my office (Win 7 with Office 2010), but my testing was done on my personal laptop using Win 8 with Office
    2010.
    It looks like Microsoft has created a bug and now all of my data collection forms are unusable.  Any help will be appreciated.

    Microsoft confirmed that the issue was introduced with MS12-066 as follows:
    ***Start Quote
    We have been able to identify that this issue was introduced with the change made for the hotfix detailed in KB 2687395. This update was included in the security update MS12-066 when you installed KB 2687417.
    2687395          Description of the InfoPath 2010 hotfix package (ipeditor-x-none.msp): August 28, 2012
    http://support.microsoft.com/kb/2687395/EN-US
    2687417           MS12-066: Description of the security update for InfoPath 2010 Service Pack 1: October 9, 2012
    http://support.microsoft.com/kb/2687417/EN-US
    Investigating workarounds I've only come up with using HTML forms or changing the datatype of the control to text.
    ***End Quote
    My own testing also indicates that if you are using InfoPath with SQL Server, you may be able to change the Date/Time picker control in InfoPath to a Date only picker control (if the SQL Server data
    type will support that).

  • Unexpected query results during large data loads from BCS into BI Cube

    Gurus
    We have had an issue occur twice in the last few months but its causing our business partners a hard point.  When they send a large load of data from BCS to the real time BI Cube the queries are showing unexpected results.  We have the queries enabled to report on yellow requests and that works fine it seems the issue occurs as the system is processing the closing of the request and opening the next request.  Has anyone encountered this issue if so how did you fix it?
    Alex

    Hi Alex,
    There is not enough information to judge. BI queries in BCS may use different structure of real-time, basic, virtual cubes and multiproviders:
    http://help.sap.com/erp2005_ehp_02/helpdata/en/0d/eac080c1ce4476974c6bb75eddc8d2/frameset.htm
    In your case, most likely, you have a bad design of the reporting structures.

  • How to produce dynamic cross-tab query result on this data ?

    Hi gurus,
    I have sales (simplified) sales data as below :
    create table sales_summ (area_code varchar2(3), sales_amt number, product varchar2(10) ) ;
    insert into sales_summ values ('A01', 100, 'P01');
    insert into sales_summ values ('A02', 200, 'P01');
    insert into sales_summ values ('B01', 300, 'P02');
    insert into sales_summ values ('A01', 400, 'P02');
    insert into sales_summ values ('A02', 500, 'P01');
    insert into sales_summ values ('A03', 600, 'P01');
    insert into sales_summ values ('A01', 700, 'P02');
    insert into sales_summ values ('A02', 800, 'P02');
    insert into sales_summ values ('A03', 900, 'P01');
    And I want to produce a cross-tab sales summary like below :
    Product A01 A02 A03 B01
    P01     100          700     1500          0
    P02     1100          800     0          300
    How is the query ?
    Thank you for your help,
    xtanto

    Search this forum for "pivot". Plenty of examples.
    Regards,
    Rob.

  • Can't obtain a query result/show more data on LiveCycle Designer ES4 (Windows 7)

    Hi all,
    I'm having some problems with LiveCycle Designer ES4 and a database connection.
    I have successfully connected my fields to a DataConnection but I only can see the first info of the database.
    I want to go through the rest of the data, I've tryied several tutorials (for example commands like xfa.sourceSet.{my Data Connection name}.next), I've tryied several DB types (SQL Server and Access (.mdb and .accdb)), I've tryed in all types of events (click, exit, initialize, and so on) and the result is the same.
    I've tryied something so simple like, create a OLEDB connection in Access, bind the fields (4 textfields), create a button with the code "xfa.sourceSet.{my Data Connection name}.next" (like the tutorial at http://www.youtube.com/watch?v=C56_Cz-aE0c) and nothing.
    Differences between the tutorial and me: The version of Designer (Tutorial ES2, mine ES4).
    Someone know what it could be? Is there some sample where can I see the code used?
    Thanks in advance.

    Thank you Denis,
    the database is intalled on the same server (Solaris-Unix) that boe and the databse is running.
    I have to install the driver when the database is in the same server?
    thanks in advance
    Mauricio

  • Returning query results in XML format

    Besides using custom tag library, does anyone know any methods or techniques that i can retrive the query results from database in XML format. for example, i have a table named student in database like this:
    StudentNo  Name   Gender  Degree
    123       Tony    male    B.Comp.Sci.
    456       Tom     male    B.Fiance
    343       Mary    female  B.Accountingso, if i have query select * from table student, i would get someting like the following:
    <row>
    <studentNo>123</studentNo>
    <name>Tony</name>
    <Gender>male</Gender>
    <Degree>B.Comp.Sci</Degree>
    </row>
    <row>
    <studentNo>456</studentNo>
    <name>Tom</name>
    <Gender>male</Gender>
    <Degree>B.Finace</Degree>
    </row>
    The reason i am asking for this is i need query results returned in XML format, so i can wrap XSLT tag around, and apply for HTML, WML, and XHTML template resprectively so i can display them on different terminals. any help is appreciated.

    I have this method in a ResultSetMapper class:
         * Return result sets as an XML stream, with root tag named
         * "results", one "result" tag per row, and "result" child tag
         * names equal to the column name
         * @param query result set
         * @param list of column names to include in the result map
         * @throws SQLException if the query fails
         * @throws JDOMException if the XML stream creation fails
        public static final Document toJDOM(ResultSet rs, List wantedColumnNames)
            throws SQLException, JDOMException
            Element rows         = new Element("results");
            int numWantedColumns = wantedColumnNames.size();
            while (rs.next())
                Element row = new Element("result");
                for (int i = 0; i < numWantedColumns; ++i)
                    String columnName   = (String)wantedColumnNames.get(i);
                    Object value = rs.getObject(columnName);
                    row.addContent(new Element(columnName).setText(value.toString()));
                rows.addContent(row);
            return new Document(rows);
        }It uses JDOM from www.jdom.org. - MOD

  • Date format in IDT

    Hi,
    I have an universe based on Teradata. I created a filter in IDT and it's like this :
    @Select(Sales\Calendar Day) =  @Prompt('Date:','D',,Mono,)
    When I use this filter and execute a test query in IDT, the date format is shown different in these 2:
    Enter a value : 10.Feb.2015
    Date : 10.Feb .2015 00:00:00
    I formatted the Calendar Day dimension and I can see it as 'mm/dd/yyyy' in the report result. That's fine.
    However, I want to do the same for the prompt screen in IDT too. How can I do this?
    The requirement is, I use the same filter for SAP Lumira and it does not provide a calendar component for date selection.
    So, the format of date to pass to universe is not clear.
    Thank you!

    Hi
    Try to change the format Cal day using below options, and then check the filter date format is showing as per your requirement
    predefined function TO_CHAR
    Use the custom display format option.
    Please find the below link for more info
    BI4.1 Business Layer Enhancements - Create Display Format

  • BI Publisher Date Format

    Hi,
    I am building a data model using a SQL query in BI Publisher, the date format of the column in the database is DD-MON-YYYY. When I use this format in BI Publisher the query returns no results:
    where trim(w.date_added) = '19-MAY-2010'
    I have tried using trim(to_date(w.date_added, 'YYYY-MM-DD')) = '19-MAY-2010'
    This also returns no results, however when running against the database I do see resullts.
    Can anyone help?
    Thanks
    Edited by: sliderrules on 16-Sep-2010 02:22

    Hi,
    If I run the query in the database using date format 'DD-MON-YYYY', I do get results. The problem lies within BI Publisher query, I have tried using java date format:
    trim(to_date(w.date_added, 'MM-dd-yyyy')) = '05-19-2010'
    This also returns no results, the actual date format in the table appears as '19-MAY-2010'

  • Query Results to the Application Server

    Hello Experts,
    We have a requirement where when we execute a query, the query results in the excel format should be placed in a folder in the application server.From the Application server I need to send these results using the FTP service to the different locations.
    Can someone please suggest me how to place the query results in the application server and how to send these results using the FTP service to the different locations.
    Regards,
    Sachin

    Hi Sachin,
    Yes its possible
    Using RSCRM_BAPI TCode schedule the report based on your requirement i.e. daily, weekly...etc. And then dump the report result into one path (Directory) in Application Server.                                                                               
    Create FTP/SFTP User ID in Application server level in BW System.
    Check the below link for more info
    /people/surendrakumarreddy.koduru/blog/2009/03/11/how-to-transfer-the-data-from-sap-system-to-non-sap-system-without-additional-costlicense
    Regards
    KP

  • Export query results to excel from forms

    Are there any ways to export query results to MS Excel format files from a form.
    Thanks.

    Here's my working code out of one of my forms that does this:
    PROCEDURE export_transactions_to_excel IS
    -- Declare the ole objects
    application ole2.obj_type;
    workbooks ole2.obj_type;
    workbook ole2.obj_type;
    worksheets ole2.obj_Type;
    worksheet ole2.obj_type;
    cell ole2.obj_type;
    -- my variables
    rowCounter Number := 1;
    local_cursor_Record number := :System.Cursor_Record;
    old_cursor_Style varchar2(100);
    errors_occurred boolean := false;
    Ole_Error Exception;
    pragma exception_init( Ole_Error, -305500 );
    my_alert_id ALERT;
    alert_response NUMBER;
    procedure place_value_in_cell( rownum_in in number
    , colnum_in in number
    , value_in in varchar2 )
    is
    -- Declare handles to OLE argument lists
    args ole2.list_Type;
    begin
    args := ole2.create_arglist;
    ole2.add_arg(args, rownum_in); /* row number */
    ole2.add_arg(args, colnum_in); /* column number */
    -- the next line is for excel97
    -- cell := ole2.invoke_obj( worksheet, 'Cells', args );
    cell := ole2.get_obj_property( worksheet, 'Cells', args );
    ole2.Destroy_arglist( args );
    ole2.set_property( cell, 'Value', value_in );
    ole2.release_obj (cell);
    end place_value_in_cell;
    procedure SaveSpreadsheet
    is
    args ole2.List_Type;
    vDateStamp varchar2(20);
    begin
    vDateStamp := to_char(sysdate,'mmddyyyy') &#0124; &#0124; '_' &#0124; &#0124; to_char(sysdate,'hh24miss');
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, 'C:\PAPRETCC_' &#0124; &#0124; vDateStamp &#0124; &#0124; '.XLS');
    OLE2.INVOKE(worksheet, 'SaveAs', args);
    OLE2.DESTROY_ARGLIST(args);
    --args := Ole2.Create_ARgList;
    ole2.invoke( application, 'Quit' );
    end SaveSpreadSheet;
    procedure Open_EXCEL_Workbook is
    Begin
    application := ole2.create_obj('Excel.Application');
    --ole2.set_property( application, 'Visible', 'True' );
    -- Return object handle to the Workbooks collection
    workbooks := ole2.get_obj_property( application, 'Workbooks' ); -- invoke_obj w/ excel 97
    -- Add a new Workbook object to the Workbooks collection
    workbook := ole2.invoke_obj( workbooks, 'Add' );
    -- return object handle to the Worksheets collection for the
    -- Workbook
    worksheets := ole2.get_obj_property( workbook, 'Worksheets' ); -- invoke_obj w/ Excel97
    -- Add a new Worksheet to the Worksheets collection
    worksheet := ole2.invoke_obj( worksheets, 'Add');
    end open_EXCEL_workbook;
    PROCEDURE Write_Column_Headers IS
    BEGIN
    place_value_in_cell(rowCounter,1, 'Payer Name');
    place_Value_in_cell(rowCounter,2, 'Payer Address');
    place_value_in_cell(rowCounter,3, 'SSN');
    place_value_in_cell(rowCounter,4, 'Account');
    place_value_in_cell(rowCounter,5, 'Refund Receipt');
    place_value_in_cell(rowCounter,6, 'Pretax Allocation');
    place_value_in_cell(rowCounter,7, 'Tax Allocation');
    place_value_in_cell(rowCounter,8, 'Total Amount');
    place_value_in_cell(rowCounter,9, 'Orig Receipt');
    place_value_in_cell(rowCounter,10,'Orig Date');
    place_value_in_cell(rowCounter,11,'TR Number');
    place_value_in_Cell(rowCounter,12,'Date');
    place_Value_in_cell(rowCounter,13,'Status');
    place_value_in_cell(rowCounter,14,'Vt Number');
    rowCounter := rowCounter + 1;
    END Write_Column_Headers;
    PROCEDURE Export_The_Data IS
    original_receipt number;
    original_date DATE;
    original_transmittal_number number;
    BEGIN
    -- Return object handle to cell A1 on the Worksheet
    Go_block('Transactions');
    First_Record;
    LOOP
    IF alert_response = ALERT_BUTTON2 or
    (alert_response = ALERT_BUTTON1 and nvl(:transactions.rg_approval,'N') <> 'N' )
    -- :system.record_status = 'CHANGED')
    then
    place_value_in_cell( rowCounter, 1, :TRANSACTIONS.NDB_PAYEE_NAME );
    place_value_in_cell( rowCounter, 2, nvl(:TRANSACTIONS.NDB_PAYEE_ADDRESS,'unknown') );
    place_value_in_cell( rowCounter, 3, nvl(:TRANSACTIONS.NDB_SSN,'unknown') );
    place_value_in_cell( rowCounter, 4, :transactions.NDB_DESCRIPTION );
    place_value_in_cell( rowCounter, 5, to_char(:Transactions.transaction_group_EID) );
    place_Value_in_cell( rowCounter, 6, to_char(:transactions.ndb_pretax_amount) ); -- chg
    place_ value_in_Cell( rowCounter, 7, to_char(:transactions.ndb_tax_amount) );
    place_value_in_cell( rowCounter, 8, to_char(:transactions.amount_including_taxes) );
    original_receipt := revenue_pkg.original_receipt_number(
    :transactions.transaction_group_eid,
    :transactions.allocation_eid,
    :transactions.allocation_table );
    original_date := revenue_pkg.original_receipt_date(
    :transactions.transaction_group_eid,
    :transactions.allocation_eid,
    :transactions.allocation_table );
    original_transmittal_number := revenue_pkg.transmittal_number_for_receipt(original_receipt);
    place_value_in_cell( rowCounter, 9, nvl(to_char(original_receipt),'unknown') );
    place_value_in_cell( rowCounter, 10, nvl(to_char(original_date,'mm/dd/yyyy hh24:mi:ss'),'unknown') );
    place_value_in_cell( rowCounter, 11, nvl(to_char(original_transmittal_number),'unknown') );
    -- COMPTROLLER COLUMNS
    IF ( alert_response = ALERT_BUTTON1 and nvl(:transactions.rg_approval,'N') <> 'N' )
    THEN
    place_value_in_cell( rowCounter, 12, to_Char(sysdate,'mm/dd/yyyy') );
    place_value_in_cell( rowCounter, 13, nvl(:transactions.rg_approval,'N') );
    place_value_in_cell( rowCounter, 14, nvl(to_char(:location.vt_number),'NULL') );
    END IF;
    End If;
    exit when :SYSTEM.LAST_RECORD = 'TRUE';
    NEXT_RECORD;
    rowCounter := rowCounter + 1;
    END LOOP;
    END Export_The_Data;
    /* ----------------------------------- main procedure --------------------------------------*/
    BEGIN
    Begin
    my_alert_id := Find_Alert('THREE_BUTTON_ALERT');
    IF NOT ID_NULL( my_alert_id ) then
    alert_Response := SHOW_ALERT( my_alert_id );
    If (alert_response = ALERT_BUTTON1) OR
    (alert_response = ALERT_BUTTON2) then
    old_Cursor_style := get_application_property( CURSOR_STYLE );
    set_application_property( CURSOR_STYLE, 'BUSY' );
    Open_EXCEL_WorkBook;
    Write_Column_Headers;
    Export_The_Data;
    Else
    Raise Form_Trigger_Failure;
    End If;
    Else
    Raise Form_Trigger_Failure;
    End If;
    exception
    when Form_Trigger_Failure then
    RAISE;
    when Ole_Error then
    AlertSend( 'There was an error exporting the data to Microsoft Excel (receipt# ' &#0124; &#0124;
    to_Char(:transactions.transaction_Group_eid) &#0124; &#0124; ')', false );
    errors_occurred := TRUE;
    when others then
    AlertSend( SQLERRM, false );
    errors_occurred := TRUE;
    End;
    Ideally, I'd like to call SaveSpreadsheet in Export_The_Data, and just ExitExcel here,
    but it prompts for whether to save the changes and I don't know how to get around that
    right now. SO, we just save and exit, regardless.
    SaveSpreadSheet;
    -- Release the OLE objects
    ole2.release_obj (worksheet);
    ole2.release_obj (worksheets);
    ole2.release_obj (workbook);
    ole2.release_obj (workbooks);
    ole2.release_obj (application);
    IF NOT errors_occurred then -- stay on the record that caused the error
    Go_Record( local_cursor_Record );
    End If;
    Set_Application_Property ( CURSOR_STYLE, old_cursor_style );
    EXCEPTION
    When Form_Trigger_Failure then
    null;
    When Others then
    AlertSend( SQLERRM );
    END export_transactions_to_excel;

Maybe you are looking for

  • My wondrous 160GB iPod classic these days.

    Up until a few days ago, I was able to sync my iPod with my new HP laptop with no problem. Then, I started not being able to sync my whole library at once, Now, iTunes freezes up whenever I connect the device, and then wonderfully works when its disc

  • Adding an extreme base station to an existing wifi 'n' network

    Got a bit of a strange one here wondering if anyone had a good answer to. Basically I am in the process of connecting up a CCTV wireless external cam to my network. I dont particularly want to use wired connection purely because of where my router is

  • How do i take songs off of my iphone 4?

    I have alreeady un-ticked the songs I no longer want on my laptop and sync'd the iphone, but they are still on the iphone?! This has taken me ages and im so frustrated! I thought it would have been staright forward!

  • Create a 9.2.0.4.0 control file over 9.2.0.1.0 datafiles

    Hi. I had a Sun solaris cluster with Oracle 9.2.0.1. After a series of events the database won't start. Having in mind that a restauration of the cluster will take some time I want to quickly set up a temporary Red Hat 9.0 server with an oracle 9.2.0

  • Merging FDF data into PDF form

    Hello all. To fill pdf form we use such url: http://server/form.pdf#FDF=http://server/get_xfdf So as result will be opened pd form in browser and filled with received data. This works in all browsers except Safari. Tested on FF 3.5, IE6, IE7, IE8, Op