Oracle primary key not getting picked up as "KEYCOLUMN" in VB 6 using ADO 2.5



Hello all,

I'm trying to get ADO to recognize my primary key "ID" on an Oracle 9i
table. This is important for ADO to be able to locate the record for
updating. Currently, when I check the "KEYCOLUMN" property of the "ID"
field, it's coming back "FALSE" which is incorrect. The primary key is
defined on the table OK, so I'm not sure how to get ADO to recognize my "ID"
field.

I've tried the following

rs.CursorLocation = adUseServer
rs.ActiveConnection = cn
rs.Properties("Unique Rows").Value = True '<--------ERROR HERE
rs.CursorLocation = adUseClient

I get the error "Provider does not support the property". This happens for
both Oracle for ODBC and MS ODBC for Oracle drivers. How can I get ADO to
recognize my primary key for updates? Thanks,

Sean




.



Relevant Pages

  • ADO.NET and ODBC { CALL ..... } Syntax
    ... Coonecting to Oracle 8i DB running on Unix ... ADO is used as connecting mechanism ... OleDB connection with provider as MSDAORA. ... Especially the using ODBC Call syntax to fetch the data either via Stored ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: OO4O 2.1 vs MDAC
    ... We're planning to move VB3 using OO4O 2.1 ... Now I must distinguish and list out some of the features that ADO / ... (OLE DB or ODBC) ... Also you don't mention the Oracle version there are differences between ...
    (microsoft.public.data.ado)
  • Re: Data modelling tool - Seeking for recommendations
    ... I tried using ODBC, ADO, and several drivers to import into the ORACLE8 target. ... Your best bet on reverse engineering Oracle would be to extract ... SQL script into file and then reverse engineer the script. ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: TADO table open exception
    ... > design time that the data can be loaded to a dbgrid by opening the TADO ... Why are you using ODBC and ADO together? ... Oracle has its own OLE DB provider which AFAICR is ...
    (borland.public.delphi.database.ado)
  • Re: Ado Oracle Performance
    ... > seconds while the same query thru sql explorer using the same ODBC ... > connection completes in 1-2 seconds. ... > Is ADO that slow or are there properties/ cache that i need to set. ... Instead of using ODBC use the Oracle ...
    (borland.public.delphi.database.ado)