OdbcDataAdapter.Fill() not getting all rows from RDB using 64bit driver

I am using VS2012 Pro on Windows 7 (64-bit). I am migrating an older 32-bit VS2008 app to the new environment. I'm building for the .NET Framework 4.5.
The app queries an RDB database and uses the Oracle RDB drivers version 3.3.2.0. When I build as a 32-bit app and use the 32-bit Oracle RDB Driver, the query succeeds and returns all 341 data rows. When I built it as 64-bit and use the 64-bit driver, I only
get the first 101 rows.
Oracle says the problem is in the OdbcDataAdapter.Fill() method. I was able to confirm this. I created an OdbcDataReader and used the debugger to see what was being read, I can see all 341 rows, but when I use the DataAdapter.Fill (or DataSet.Load) method,
the results are truncated to 101 rows. Changing the SQL to query different tables does not change the problem. Below is a code sample:
        private DataSet runQuery()
            string connString32 = @"PROVIDER=MSDASQL;DRIVER={Oracle RDB Driver};SVR=myserver;DATABASE=ATTACH 'filename mydatabase';CLS=myclassname;uid=myusername;pwd=mypassword;xpt=2";
            string connString64 = @"PROVIDER=MSDASQL;DRIVER={Oracle RDB Driver 64 Bit};SVR=myserver;DATABASE=ATTACH 'filename mydatabase';CLS=myclassname;uid=myusername;pwd=mypassword;xpt=2";
            string sql = "SELECT person_id FROM person_tab";      
            DataSet ds = new DataSet();
            using (OdbcConnection conn = new OdbcConnection(connString64))  
                OdbcCommand cmd = new OdbcCommand(sql, conn);
                OdbcDataAdapter da = new OdbcDataAdapter();
                da.SelectCommand = cmd;
                conn.Open();
                da.Fill(ds, "myDataSet");
            return ds;
Has anyone else encountered this problem? If so, how did you get around it?

Hello,
Since I do not have the RDB database, I made a test with both 32bit and 64bit ODBC Driver 11 for SQL Server and query for 1000 records, however, both of them can work fine.
As far as I know, the ODBC is just a component as a bridge to connect the driver and the application and since you are use the Oracle RDB driver, I suggest you posting it to the Oracle forum:
https://community.oracle.com/community/developer/english
Regards.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • IPhone 5 not getting all texts from Galaxy S6

    My girlfriend is having a problem not getting all of my texts. As far as we know, it is only happening to texts from my phone. They are showing as sent on the Galaxy S6, but do not show up, ever, on her iPhone 5. The missing messages are random. 

    Hi there
    I’m sorry to hear that there have been some issues with receiving texts. I’d be happy to look into this for you! Can you please send me a private message by Clicking Here and include the following information?
    Full name
    Cell number
    Recipient’s number
    Best time to call
    Thanks,
    Charise
     

  • Mail not getting all messages from server and other strange behavior

    Hello All,
    Mail has been doing some odd things for me of late (at least the last week) and I'm lost for a solution to my problem. As far as I can tell, perhaps my Prefs. have become corrupted, or at least something in relation to Mail has become corrupted. Perhaps someone has a solution to this issue before I have to back it all up and NUKE the whole **** app to get back up and running properly.
    The main issue I appear to be having is that Mail is not getting all of my Mail messages from my server. I can log into my web-mail interface provided by my domain host and can see there that there are many e-mails that don't appear to be coming down the pipe to the Mail.app client. I'm getting some e-mail's but not all....
    *Here are all the things that I've checked:*
    • The missing e-mails are not being picked up as Junk and are not in the Junk folder
    • I have done a search within Mail for the missing e-mail's and nothing turns up anywhere.
    • I have checked on the server end that I'm not maxing out my InBox or that there are any other service issues from my domain host provider.
    • I have been into Prefs and checked my account settings - most (see below) of which appear to be as normal and are fine.
    *Here are the weird things that I've noticed:*
    • When I went into the Prefs. for the account in question, I noticed that my login had changed. For example - it usually it is "[email protected]", however it had seemed to have changed to just "johndoe" - I know this wasn't me as my domain host will not allow me to access any mail unless the login is the full mail address.
    • In RULES, every rule I double click to check on seems mostly fine, apart from the fact that every "Account is:" the pull down menu just appears as blank. Usually it says "Account is: ([email protected])"
    It's there last 2 items that make me think something is corrupted - so I guess my question is, what pref or file has corrupted and how can I fix it without having to give Mail.app a digital enema?
    Any assistance would be most helpful - missing some but not all your incoming e-mail messages is quite annoying, as you can guess...!
    Thanks,
    Boz

    Hello Boz.
    This appears to be a rules issue. Mail is almost certainly downloading those messages, but they’re probably being processed by your rules in an unexpected way — given the information you’ve provided, maybe because there is something wrong with the file where the account settings are stored.
    Do you have any Mail plug-ins? In the Finder, go to each of the following folders (if they exist). What do you see there?
    /Library/InputManagers/
    /Library/Mail/Bundles/
    ~/Library/InputManagers/
    ~/Library/Mail/Bundles/
    To make accurately reporting this information easier, you may open /Applications/Utilities/Terminal, type the following command (you can just copy it here and paste it in Terminal), and press <Return>. You can then copy the output of that command from Terminal and paste it in your reply to this post:
    ls -1 /Library/InputManagers /Library/Mail/Bundles ~/Library/InputManagers ~/Library/Mail/Bundles
    <hr>
    Verify/repair the startup disk (not just permissions), as described here:
    The Repair functions of Disk Utility: what's it all about?
    After having fixed all the filesystem issues, if any, and ensuring that there’s enough space available on the startup disk (a few GB, plus the space needed to make a backup copy of the Mail folder), try this:
    1. Write down your Mail > Preferences > Accounts settings or take screen shots of them.
    2. If you have a .Mac account and .Mac synchronization of Mail data is enabled either in Mail > Preferences > General or in System Preferences > .Mac, disable it before proceeding.
    3. Quit Mail.
    4. Make a backup copy of the ~/Library/Mail folder, just in case something goes wrong while trying to solve the problem. You can do this in the Finder by dragging the Mail folder to the Desktop while holding the Option (Alt) key down, for example. This is where all your mail is locally stored.
    5. In the Finder, go to ~/Library/Preferences/. Locate com.apple.mail.plist and move it to the Desktop (to be deleted if this solves the problem). If you have a backup of your data that includes a working copy of this file, you may try restoring it from the backup to avoid steps 6-8.
    6. Open Mail. You’ll have to set up your non-.Mac accounts from scratch all over again. If given the option to import existing mailboxes or something like that, don’t. Just enter the account information and Mail will automagically rediscover the data in ~/Library/Mail/ when done.
    7. You’ll have to re-configure some of your Mail > Preferences settings. For spam-related security reasons, the first thing you should do is go to Preferences > Viewing and disable Display remote images in HTML messages if it’s enabled.
    8. As a side effect of re-creating com.apple.mail.plist, Mail might rename Outbox (which is where messages waiting to be sent are stored) to Delivered. The name of that mailbox is actually a misnomer, as it would contain messages (if any) that couldn’t be delivered for some reason. You can delete that mailbox if you wish.
    9. If the problem is fixed now and .Mac synchronization of Mail data was enabled at the beginning, enable it again, go to System Preferences > .Mac > Advanced, click Reset Sync Data, and choose the appropriate options to reset the Mail data stored on the .Mac server with the data locally stored on the computer, i.e. sync data must flow from the computer to the .Mac server.
    <hr>
    Note: For those not familiarized with the ~/ notation, it refers to the user’s home folder. You can easily locate any of the folders referred to in this post by copying the folder path here, doing Go > Go to Folder in the Finder, and pasting the folder path there.

  • Help:  Not getting all data from text data type

    Hi there
    I have a stored procedure that returns a couple of fields and one of the fields is of datatype TEXT. In my ResultSet, I do not get all the data back that is stored in the TEXT datatype. I have say about 600 charactors in this field, but only 30 charactors are returned. Is there a reason why this is happening and how can I fix it?
    Please help?
    Thanks

    I set that field to have a normal string of about 50 charactors. Namely: "this is a note that is about 49 charactosrs long." (exclude the quotes). And I still got 30 charactors back only.
    I set a shorter text value of 21 charactors and that returned all 21 charactors.
    The text that is usually in this field is:
    "URL=SubsidiaryNarrative.html�BABY_CARE_PRODUCTS=false�AIDS_FOR_PHYSICALLY_DISABLED=false�SPORT_SUPPLEMENTS=true�NATURAL_REMEDIES=false�COSMETICS_FRAGRANCE=false�WOMANS_HEALTH=false�ADDITIONAL_CARDS=No�EXERCISE_ROUTINE=Yes�NUMBER_OF_CHILDREN=0"
    And I got out "URL=SubsidiaryNarrative.html�B"

  • How to get all events from calendar using calcalendar store framework.

    Hello,
    I have two problems with calcalendar store framework programming.
    1. I need all the event which are present in iCal calendar.Event may be present in year 2025 or 2050. and if the event is recurring then i need only one event.
    2. if the event is recurring then i need only one event within the calendar event predicates (start date and end date). I am not suppose to give the occurrence date for event.
    How can I implement this with CalCalendar store framework.
    Thanks And Regards,
    xmax.

    Hi,
    Per my knowledge, there is not a method to get all the recurring events using CAML query in one request.
    Here is a thread with the similar question for your reference:
    https://social.msdn.microsoft.com/Forums/sharepoint/en-US/eed6be6d-c9ff-4d01-80de-8a4b67d3d7a5/use-caml-to-get-all-recurring-events-from-a-calendar
    We can get all the calendar list events at first, then filter all the recurring event from the result set.
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Cannot get all rows from cfProcResult

    We upgraded one of our servers (A) from CF 6 to 7.02. Another
    server (B) has CF 7.01.
    On server B (CF 7.01) the code works (below), all rows of
    each dataset are returned.
    Now on server A (CF 7.02) all of the resulting datasets have
    only the first record in them. If I add maxrows="-1" to each of the
    cfProcResult tags there is no change. If I change that to
    maxrows="100" then I can get the rows up to 100.
    Is this a bug or is there a different means to return all
    rows?

    It think its a bug. I got the same results under MX 7.0.2.
    The topic of maxrows recently came up on another thread. I
    did some searching and according to TechNote 18339 there was a
    change with maxrow
    "<cfquery maxrows=N> bug. ColdFusion MX (until ColdFusion
    MX 7.0.1 CHF2) didn't pass maxrows to the underlying driver
    (statement.setMaxRows())"
    Given the results you're getting, it sounds like CF is
    applying the maxrow to all of the resultsets, not just the one
    where maxrows was declared. I suspect cfstoredproc's usage of
    statement.setMaxRows() is incorrect. Thats just a guess though.
    Bottom line, I think you'll need handle it manually.
    Personally, I would recommend placing the row count logic in the
    stored procedure (if possible). The overall results will be more
    consistent and you won't have to worry about this kind of issue
    again.
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_18339
    http://livedocs.adobe.com/coldfusion/7/htmldocs/00000314.htm
    http://www.remotesynthesis.com/blog/index.cfm/2006/3/23/Maxrows-Issue-in-CFQuery

  • Mail not getting all messages from Inbox

    I get my email via Gmail using POP.  For several months I have noticed that I can only download about 11 messages at a time, even if more are on the server.  I have to rehit "Check mail" button until I get them all.  It is rather annoying and sometimes leads to me missing messages that should have been downloaded.  I cannot figure out how to fix this.  I went to the Genius Bar and they could not figure it out.  I have trashed the prefs files and that does not help.  If I set up a new User it works fine, so clearly there is something awry in my User account or Mail folder, but I have too much organized and setup in Mail to just start afresh.  Any help or advice would be much appreciated.  Thanks.
    p.s.  This happens no matter the ISP I am on.  I travel and it is the same everywhere.

    I get my email via Gmail using POP.  For several months I have noticed that I can only download about 11 messages at a time, even if more are on the server.  I have to rehit "Check mail" button until I get them all.  It is rather annoying and sometimes leads to me missing messages that should have been downloaded.  I cannot figure out how to fix this.  I went to the Genius Bar and they could not figure it out.  I have trashed the prefs files and that does not help.  If I set up a new User it works fine, so clearly there is something awry in my User account or Mail folder, but I have too much organized and setup in Mail to just start afresh.  Any help or advice would be much appreciated.  Thanks.
    p.s.  This happens no matter the ISP I am on.  I travel and it is the same everywhere.

  • Custom authorization provider for WL7 problem (not getting all parameters from ContextHandler)

    I'm implementing a custom authorization provider for WebLogic 7.
    In my Access Decision isAccessAllowed method I need to check values of
    the parameters passed to an EJB method. Now, if an EJB method I have
    two parameters of the same type, for example int, when I get
    ContextElement array from ContextHandler and iterate through it to get
    names and values of the parameters I get the same value (value of the
    first int parameter) from both ContextElement's.
    Here is the code:
    String [] names = ch.getNames();
    for (int i = 0; i < names.length; i++)
    String name = names;
    System.out.println("name = " + name);//here it gets array of
    Strings, which contains two parameter names: "int","int",
    which are the types of EJB method parameters
    ContextElement[] ces= ch.getValues(names);
    for (int j = 0; j < ces.length; j++)
         ContextElement ce = ces[j];
         System.out.println(ce.getName()+ " = " + ce.getValue());
    //here if the value of the first int was 2 and the second 0,
    it would get 2 from both ContextElements (each of ContextElements will
    have name "int"
    If I try this with method parameters of different types, for example
    int with value 2 and long with value 0, then this code work fine -
    first ContextEleement has name int and value 2 and the second has name
    long and value 0.
    Thanks,
    -Oleg Kozlov.

    I'm implementing a custom authorization provider for WebLogic 7.
    In my Access Decision isAccessAllowed method I need to check values of
    the parameters passed to an EJB method. Now, if an EJB method I have
    two parameters of the same type, for example int, when I get
    ContextElement array from ContextHandler and iterate through it to get
    names and values of the parameters I get the same value (value of the
    first int parameter) from both ContextElement's.
    Here is the code:
    String [] names = ch.getNames();
    for (int i = 0; i < names.length; i++)
    String name = names;
    System.out.println("name = " + name);//here it gets array of
    Strings, which contains two parameter names: "int","int",
    which are the types of EJB method parameters
    ContextElement[] ces= ch.getValues(names);
    for (int j = 0; j < ces.length; j++)
         ContextElement ce = ces[j];
         System.out.println(ce.getName()+ " = " + ce.getValue());
    //here if the value of the first int was 2 and the second 0,
    it would get 2 from both ContextElements (each of ContextElements will
    have name "int"
    If I try this with method parameters of different types, for example
    int with value 2 and long with value 0, then this code work fine -
    first ContextEleement has name int and value 2 and the second has name
    long and value 0.
    Thanks,
    -Oleg Kozlov.

  • Full update not getting all records from PSA to ODS

    Dear BW Masters,
    I am working with MM module. Iam using standard extract structure 2LIS_02_ACC
    Iam doing full update. Getting full data 1300 records in to PSA. But getting only 298 in to my ODS. I tried changing fields in to KEY FIELDS AND IN TO DATA FIELDS in my ODS
    But could not get data.
    Pls help me..i have dead line before that i need to complete report on the same.
    Its happening with the other HDR and ITM extractors.
    PLs help me..

    Hello,
    Look at this example:
    R/3 Record:
    CustNo | Name | Order | Amount
    1234 | Customer1 | Order 1 | 100
    1235 | Customer2 | Order 2 | 200
    1234 | Customer1 | Order 3 | 300
    If Cust.No is Keyfield, In BW you will get 2 records
    1234
    1235
    If Order No is Key field, you will get 3 records.
    It is not necessary to get the same no of records as they are in R/3.

  • Iphone 4s not getting all email from 2 out of 3 accounts

    I have an I phone 4S and have two POP3 accounts and a gmail account set up.the two POP 3 accounts have suddenly stopped pushing all of the received emails to the iphone.
    I used to receive them on the phone and computer at the same time. Last two days this has not occurred. I am worried as of course the POP 3 accounts are related to my business.
    Any thoughts or help is appreciated.

    Hi,
    I've found something that solve the problem imediately, maybe you could try.
    On the Web go to your yahoo account, on the french interface, on the top right corner there is a dropdown menu "options" with a "other options" entry, select, you get a page and the left part, select "POP Acces and Transfert" and check the firt radio button, that accept the POP access.
    Just selct another entry from the left and save and disconnect.
    And it works immediatly, perhaps you will have to recreate your account on the iphone or ipad, but I don't have to.
    I apologize for my poor english, I hope you understand.
    Regards
    Philippe

  • Not getting all resolutions from webcam with getFormats() - why?

    Hey fellow Java geeks!
    I own a Philips SPC1300NC/00 which is a kick-ass webcam that can take up to 1.3 megapixel video/snapshots.
    Using Owen's code from http://forum.java.sun.com/thread.jspa?forumID=28&threadID=570463 it gives you a list of all available formats from CaptureDeviceInfo.getFormats(). Doing this on the Philips camera i got (only listing the RGB formats):
    320x240
    160x120
    176x144
    352x288
    640x480
    And as you can see none were 1280x1024 which equals 1.3 megapixel.
    So my question is, how do i select the 1280x1024 video resolution for my Philips if it's not even in the list?
    Thanks for reading and sincerly,
    Christoffer

    Hi Christoffer,
    I get the same thing on my webcams. ( cheaper eBay ones )
    Not sure if it's
    a) requires a USB 2 port to access the better resolutions
    b) the webcam drivers aren't returning the full list of resolutions
    c) jmf performance pack binary files aren't returning the full list of resolutions
    d) jmf java code not returning the full list of resolutions
    But as an experiment, you could try calling setFormat() with your own constructed VideoFormat, eg.
    VideoFormat videoFormat =
                new RGBFormat(new Dimension(1280, 1024),
                              Format.NOT_SPECIFIED,
                              Format.byteArray,
                              frameRate,
                              24,
                              1,
                              2,
                              3);regards,
    Owen

  • Get all rows from a table control

    Hi All,
    I have a table control with one column. What function should I use to retrieve all the rows ? Do I need to iterate row by row and read each row or is it possible to do it in one function ?
    Thanks,
    Kanu
    Solved!
    Go to Solution.

    Supposing vells in the column have all the same data type, you can retrieve the whole column with a single instruction:
    GetTableCellRangeVals (panel, control, VAL_TABLE_COLUMN_RANGE (1), array, VAL_COLUMN_MAJOR);
    The array passed must be large enough to retrieve all data. Alternatively, you may substitute the macro VAL_TABLE_COLUMN_RANGE with the appropriate MakeRect instruction.In case your table was dinamically built, you can obtain the nu,ìmber of rows using GetNumTableRows and dimension your array accordingly.
    The above macro is defined in userint.h together with some other useful macros that can be used to access data in a table.
    There are some precautions to take in case of string values or some cell type (ring, combo box, button...) that are described in the hell for the function.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • V1.5 Export to CSV or TXT and not getting all rows (600K+)

    We've recently moved to SQL Developer from a third party application and have been running into issues attempting to export very large queries (600K+ rows). We did find a very helpful article which suggested modifying the sqldeveloper.conf file settings which now will apparently allow us to run the query, but when we go to import into Access where some forecasting routines have been written, not all of the rows are coming into the file. BTW we are running on Windows XP.
    Has anyone else seen this?
    The 2 changes made to the sqldeveloper.conf file are:
    modify to increase to 512: AddVMOption -XX:MaxPermSize=512M
    Add this entry: AddVMOption -Xmx768M
    We thought increasing the Xmx setting might help, but setting it to 1024M results in a JVM error where the program won't even launch.
    Any help or suggestions would be greatly appreciated.
    Edited by: user590541 on Jan 13, 2010 5:32 PM

    Couple of things;
    Sure you need the export? ODBC can link dynamically to your Oracle DB.
    Sure the export file is missing the rows and it's not Access? Please verify.
    If so, you could just export in 2 steps (limiting the export files using the PK or ROWNUM).
    Hope that helps,
    K.

  • IPhone is not getting all photos from iPhoto during sync

    One particular album in iPhoto is only showing as having 3 photos in iTunes and only syncs those 3 to the iPhone. The album actually has 9 photos, but I can't get the other 6 to sync up. Any thoughts or experience with this problem?

    Got it. I had to export and then drop the photos back in the album. Lost all the notes i had put on them, but at least now they show up in the album in iTuens and synch to the iPhone.

  • Business Objects is not returning all rows from Query

    We set the rowcount to 1000000 and the business objects query only returns 16,960 rows.  We then uncheck the limit for the rowcount and the first run of the query returns 65,535.  The subsequent run of the query returns all the rows which is greater than 65,535.  We are on release 6.1A of business objects and selecting from Microsoft SQLServer 2005 in 2000 compatablility mode. We noticed that the rowcount being sent to SQLServer is replacing the set number with the 65,535 the first time the query is sent and subsiquent queries have the correct rowcount set.  What would be causing the rowcount to be reset and how can it be fixed?

    We set the rowcount to 1000000 and the business objects query only returns 16,960 rows.  We then uncheck the limit for the rowcount and the first run of the query returns 65,535.  The subsequent run of the query returns all the rows which is greater than 65,535.  We are on release 6.1A of business objects and selecting from Microsoft SQLServer 2005 in 2000 compatablility mode. We noticed that the rowcount being sent to SQLServer is replacing the set number with the 65,535 the first time the query is sent and subsiquent queries have the correct rowcount set.  What would be causing the rowcount to be reset and how can it be fixed?

Maybe you are looking for

  • Did my first back up today using external hard drive and time machine now i can't drag and drop

    Hi, i did my first back up today using time machine it all went onto my external hard drive fine. Now i cant drag and drop anyhting. I assume ive cahnged some settings in time machine but cant figure it out what to do can some one help ? thanks

  • Change default setting on discoverer/plus

    Dear, when connecting to discoverer/plus or viewer. The first screen, we will see "Connect to" and the default for this one is "OracleBI Discoverer" I just wonder if i can set this default to the second option from the drop down box "Oracle Applicati

  • Obtain remote interface using PortableRemoteObject

    Hello, I have sample code from "Applying Enterprinse JavaBeans" book. Plan plan = (Plan)PortableRemoteObject.narrow( it.next(), Plan.class); ... plan.getPlanInfo() ... here: Plan is a remote interface of the entity bean (e.g.. MyPlanBean). getPlanInf

  • Unwanted spontaneous duplicate folders in Shared Workarea (why?)

    Hi, we are experiencing a strange situation: every folder hanging under the 2nd hierarchy level in the Shared Workarea appears duplicated, that is, every folder appears twice with exactly the same name and the same version, but empty. We cannot find

  • InDesign CS3 + Printing Problem

    I have a very simple problem, but am not sure how to solve it. If I ever print more than one copy than anything, InDesign flattens the document that many times before it prints. If I want 100 copies, I must wait for InDesign to flatten and process my