sql - Access 2007 to Oracle 10g linked table -- query with flawed results, but no errors thrown -


The wrong filter results are returned to the database to be asked from the linked Oracle 10G tables, from where the WHERE query is used to filter out Can be done for unwanted records. Oddly, some is being filtered, but not by reliability.

I can display / display the problem like this:

  1. Create a new * database * Access 2007.
  2. Create a second * new * database with Access 2007, and then "save-as" 2000.
  3. Create a third * new * database with an old Access version.
  4. Run the following queries in each database:
  select position, id, LAST_NAME, FIRST_NAME with Oracle10g_table where position = "A" In both of the databases, running this query, you will get a result set that contains  some  of the record where (STATUS = "A") = false, but not all of those filtered  
  • In the database created with earlier versions of Access, where the section filters properly, and the result set is correct.
  • Position is a text field
  • The table is a "linked" table which is in the Oracle 10G database
  • 68K rows in the table Li>
  • I have tested my timeout in 60, 1000 and 0

    Has anyone participated in this problem?

    I'm surprised that this is a new "feature" that will affect 2010. Can anything happen with Odbi?

    Thanks for any help, - Dave

    more ...

    I just try an alternative form of query using HAVING instead of WHERE Of, and it worked! The problem is that nothing should be changed except that (yes - more virtual tables, but the end result should not change) using my end user access 2007 visual query designer, SQL does not directly type, which is going on To define any criteria, they enter in WHERE.

    My garbage is that access to one of your ODBC drivers connect to Oracle "A" Is not considered as the name of the column, which is not 'A'. Have you tried single quotes on 'A'? In the double quote of Oracle used in the context of column names, is there a single column called "A" by any chance?

    Oracle query example # 1

      Select object_object in all_objects where "OBJECT_NAME" = 'DUAL'  
    < P> Oracle query example # 2

      with an example (select Object_object as "Fancy column name" from All_objects) * Choose from example * Where " Fancy column name "= 'dual'  

  • Comments

    Popular posts from this blog

    c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

    Calling GetGUIThreadInfo from Outlook VBA -

    Obfuscating Python code? -