Resultset in the same order as saved in the database

Hi Folks!
I'm having some trouble with an old development, because for some really strange reason, the same select statement i'm getting the same records but in different order from time to time randomly.
For example in day 1 i can get:
1 Text1
2 Text2
3 Text3
And in day 2 i can get:
1 Text2
2 Text3
3 Text1
Is there a way to force the select statement so it always get it in the order as saved in the database?
Hope someone can help me with this pretty strange issue.
Thanks.
Regards,
Gilberto Li

Hi Neil,
Your answer makes a lot of sense to me. And I agree that it might won't guarantee that bypassing the buffer will work 100%. However i'm still going to make a try see if it works, and how good it works.
What i'm thinking is that I will need to redesign this old development and insert a new field to a table to add a position so I can order after the select statement.
But if someone still have any other solution i will appreciate your help.
Thanks again.
Regards,
Gilberto Li

Similar Messages

  • Is it possible to import photos from a disk and retain the same order?

    Is i possible to import photos from a disk and retain the same order they appear on the disk?  When I import them, the come out in random order.

    When first imported the photos will be sorted in the Event chronologically. On the disk they well be sorted by the Finder and that's usually alphanumerically by file name. So select the photos in the event and type Commnad+N.  That will create a new album at the left with the photos in it. Then go to the View ➙ Sort Photo menu and select "By Title".  That should give you the same order as you view the photos on the disk via the Finder.
    OT

  • How can I order two different calendars from iPhoto in the same order?

    How can I order two different calendars from iPhoto in the same order?

    You cannot - the "Buy Calendar" button is only available, while viewing one calendar. You can order more than one copy of the same calendar on one order, however.

  • Keep photos in the same order that they appear in an iPhoto album?

    I am uploading photos from an iPhoto album to Google+.  I want to keep the photos in the same order that they are appear in the album, but the order is rearranged.  ANy idea on how to keep photos in the same order?
    Thanks.

    If the photos are sorted by file name by Google+ you'll need to rename them in iPhoto via the Photos ➙ Batch Rename ➙ Title to Text menu with the checkbox checked to add a sequential number to the end of the file name:
    Export them to a folder on the Desktop via the File ➙ Export ➙ File Export menu with File Name = Use Title:
    OT

  • My goal: "convert into pdf" -- the file is instantly saved with the same name as pdf. feasible?

    Good evening dear experts,
    i use Adobe Acrobat 9 pro extend to convert word, ppt, jepgs etc. into pdfs.
    No if i
    1) convert a ppt into a pdf: it asks --> "save as" --> converts --> opens the file
    2) convert a jpeg into a pdf: it instantly --> opens the file as pdf --> i need to save it manual under "save as"
    In both cases i want to
    my goal: "convert into pdf" --> the file is instantly saved with the same name as pdf
    WITHOUT asking me "save as" + "opening of the file".
    Is the possible, and if yes, HOW ?
    A fast answer is very very much appreciated, for i have to convert hundreds of files tonight in order to get it into 1 pdf
    Thx and greetings from Germany,
    Julia

    We are nearly there!
    A] - righclick "convert-to-method": @Bill: thx again, your approach worked for ppt, doc-files etc.
    2 problems:
    1) exception: for jpegs/bmps it doesn't work (the file is still opened after conversion, strange).
    2) the output-folder. it only accepts the standard "output-folder documents/*.pdf" (which is a step further but not my end-goal). If i choose another output-folder via "browse", this setting is NOT SAVED (even after clicking on "accept" + "ok").
    my goal: the the file should be automatically saved in THE SAME folder the original file is in (seems that can't be achieved and the standard folder is the only thing where to convert in?).
    Personal background for understanding: i have many folders with several ppts in it. Once i send it out to a customer, i always have to convert it into a pdf. thats why i want to save time (i know that i can convert it directly + send per mail, but i want an up-to-date copy of the pdf in the folder as well).
    B] - "the automated solution"- @Sandeep:
    i just watched your link http://tv.adobe.com/watch/acrobat-tips-and-tricks/automating-tasks-in-acrobat/
    about batch processing and i think its really helpful if i want to convert ALL of the files in one folder.
    1 question regarding this: are the subfolders also affected?
    As i understood from the video, i choose 1 "watched folder" and a "destination folder" (can be the same). E.g i have 1 big folder "designs" with many subfolders. I create a batch converting ppts to pdf to "the same folder" Once i run my batch, it converts ppts in the chosen folder "designs" + all subfolders into the same folder, right?
    If this is the case, i get too many pdfs, for i only need the latest ppt-version to be converted (copies of old ppts are also in the files) ;(.
    Do you have an idea how can i solve this?
    Now we are very near to the end-solution of my goal:
    i need this option "to the same folder" in my general settings when i convert a file via right-click. ATM it only works with the standard-folder documents/*.pdf
    In A], my files are now instantly saved with the same name in 1 specific folder. I would be completely happy, if this folder would be alwys the same as the one with the original file (and not 1 specific folder)
    2nd problem with a]: it does not apply to picture files (bmp, jpegs..)
    So if we could solve this, i would be a completely happy girl
    Guys, you are great, thx again for the whole struggle with my concerns!!

  • I am facing issue in Receiving incoming calls, Name not getting displayed though the same has been saved in my phone book!! I have done sync from Windows contacts.. please help if some1 knows how to rectify the issue...

    I am facing issue in Receiving incoming calls, Name not getting displayed though the same has been saved in my phone book!! I have done sync from Windows contacts.. please help if some1 knows how to rectify the issue...

    Has your carrier been having issues with Call Display? Do the telephone numbers come up when people call, or does it just show 'Unknown Number' or 'Blocked' ?

  • Report (summary) to print in the same order as the PAYCHECK run.

    Hi,
    I have a requirement where an incentive pay summary by salesperson, will need to print in the same order as the checks that print for those salespersons.
    Is this possible and if so, what is required to accomplish the above requirement?
    Thank You,
    John

    You can't change them once they are in the Photos app. On iOS 5 the photos will be sorted by the photo's 'date modified' field (from here) - so you will need to modify that field on your photos before syncing to get them into your required order. Or you could consider using a third-party photo management app instead of the Photos app e.g. Photo Manager Pro which allows you to re-order photos directly within the app.

  • After upgrading to 5.01, songs in my playlist no longer are in the same order as on itunes.  I want to at least list them by the most played first not some random Apple order.

    After upgrading to 5.01, songs in my playlist is no longer are in the same order as on itunes.  I want to at least list them by the most played first not some random Apple order.

    Not sure why this is happening and it is a pain. Once the Purchased list sorted by 'date added' go to the left most column and select the top - in my Purchased list the new items go to the bottom and I drag them back up to the top position.
    MJ

  • I use a gmail account for my mail.  When I send an email I sometimes get multiple duplicates (up to 10-12) of the same sent message saved in my sent file.  help

    I use a gmail account for my mail.  When I send an email I sometimes get multiple duplicates (up to 10-12) of the same sent message saved in my sent file.  help

    Did you check your user name and password in Settings>Mail,Contacts,Calendars...tap your email account, tap SMTP, then tap the primary server name.  Make sure the settings there are correct.

  • How can I sync my ipod shuffle so that it plays in the same order as my playlist?

    How can I sync my ipod shuffle (4th generation) so that it plays in the same order as my playlist?

    Is the playlist in your iTunes library, or is it already on the shuffle (as a playlist)?
    If you created one or more playlists for your shuffle in your iTunes library (with the songs in the desired playlist order), you should set up automatic syncing.  Here's how to do that, if you have not already...
    NOTE:  If the iTunes sidebar (along left side of window) is not visible, from the menu bar, under View, select Show Sidebar.
    Select the shuffle in the sidebar, under DEVICES.  Near the top of the window, there is a bar of buttons, starting with Summary.  Click Music next to Summary.  This is the shuffle's Music screen, where you tell iTunes how to sync songs. (Sorry if you know this already...)
    Check the box for Sync Music.  Below that, choose the option to sync Selected playlists, artists, albums, and genres.  In your case, find and checkmark those playlists you want under Playlists.  When you click Apply, the songs on those playlists and the playlists sync to the shuffle. 
    When using your shuffle, the default playlist that you are using is the All Songs list.  To play songs in order, the shuffle's power switch needs to be set to the play-in-order (middle) position.  However, if you are playing from the All Songs list, the songs play in alphabetical order.
    To play from a particular playlist that is on the shuffle, you need to use VoiceOver to switch to that playlist.  This document explains how to set up and use VoiceOver on a shuffle
    http://support.apple.com/kb/HT4322
    When playing from a particular playlist, with the power switch set to play-in-order, the songs play in playlist order.

  • Is there a way to order several different iPhoto projects at one time, on the same order? (to avoid paying shipping on each individual project?)

    Is there a way to order several different iPhoto projects at one time, on the same order? (to avoid paying shipping on each individual project?)

    No, unless they're all prints.
    (117535)

  • Same material can exist on multiple line items for the same order.

    Hi
    Is there any specific customising setting or web shop setting through which we can restrict user to add same material on multiple line items for the same order ?
    Regards

    No.
    But if this is a must requirement, you can do an elaborate check during order save in ORDER_SAVE BAdI and return error. So, it will be only during order save.
    Eawar Ram
    http://www.parxlns.com

  • How to put material and service in the same order

    I want to put the material and service in the same order. How do it input different taxes. and also migo for one material item and other service item.

    HI,
    In your scenario create material and service PO using T-code ME21N as follows.
    1) Select PO document type, vendor and PO date
    2) PO first line item account assignment 'N' if project and give input data material code,plant,storage location,qty,rate,delivery date and tax code.
    3) PO second line item account assignment 'K', item category 'D',material short text for service, plant,storage location,material group data's are input given and press enter it will open 'Service Tab' in Item Detail Menu.
    4) In item Detail Menu - Service tab you will give Service no.,qty,gross price for the above  service material activity and service tax code in Invoice TAB and then check PO and SAVE.
    5) After getting PO approved by top management.
    6) PO first line item, you will do MIGO and PO second line item you will do ML81N service entry sheet.
    7) On the vendor bill, you will mention material document number (GRN no.) & Service sheet number and given to accounts dept.. They will book vendor bill and give payment.
    Hope, it is useful for you and solve your requirement.
    Regards,
    K.Rajendran

  • Scehdule Line Date getting change to future date once the Sales Order is saved

    Hello Experts,
    Good Morning to you all,
    This is with respect to the Issue we are facing for the Orders having Product Allocation on multiple materials. Please find enclosed the detials below.
    Issue : Scehdule Line Date getting change to future date once the Sales Order is saved. These Order's are having Product Allocation on multiple materials.
    Description:
    We have implemented Product Allocation few months back.
    We have Product Allocation on multiple materials which are in demand and has been reserved for the Customers of different PA behaviors.
    When we are trying to create the Sales Orders for the normal customer who is not on Product Allocation. The Order Schedule Line is getting changed to future date once the Sales Order is saved after initial creation.
    These Order's are having materials of Product Allocation.
    I have enclosed the sample screen shot of the error we are getting which saving the Sales Order and also the Order Schedule Line screen shot showing future date.
    Error Message : There may be Product Over Allocation in Delivery Group 001.
    Message No : VV023
    This is a random behavior we are coming across and out of 10 Order 2 or 3 Orders is getting this Issue.
    Please share your inputs how to rack this Issue.
    Your suggestions will be highly appreciated.
    I am unable to upload the attacments dont know what the reason.
    Thanks,
    Farhan.

    Check whether you need to carry out the coding corrections as recommended in the following note:-
    Note 52067 - Message VV023/VV024, but no prod.alloc.processing    
    But I wonder this is for older versions and not sure whether this would help you to overcome from the issue.
    G. Lakshmipathi

  • Now that the photo gallery in MobileMe is ending, is there another photo sharing site to which existing iPhoto albums can be transferred as is, with photos in the same order and with titles, and with minimal problems?

    Now that the photo gallery in MobileMe is ending, is there another photo sharing site to which existing iPhoto albums can be transferred as is, with photos in the same order and with titles, and with minimal problems?

    No. If you don't have the album you originally used to create the galleries you can do so by dragging the photos from each gallery to a new, empty album. Then when you find the photo sharing site/option you have decided on  you can easily upload each album to the site.
    Another option is to obtain a hosting service and create iWeb photo pages for each album and future albums similar to this photo page in one of my demo sites: iPhoto Book as an iWeb Slideshow.  Or you can use the iWeb album page and have an album for each  iPhoto album on it like on this demo page: Page-7 .
    OT

Maybe you are looking for