Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Mobile Development
  3. Mobile
  4. Problem in using Composite index in Seek method on OLEDB/SQL CE

Problem in using Composite index in Seek method on OLEDB/SQL CE

Scheduled Pinned Locked Moved Mobile
databasehelptutorialquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    AKSIVAKUMAR
    wrote on last edited by
    #1

    HI, I use the OLEDB method to seek the record: ... TableID.eKind = DBKIND_NAME; TableID.uName.pwszName = (WCHAR*)TABLE_TBL1; IndexID.eKind = DBKIND_NAME; IndexID.uName.pwszName = L"idx_Key"; ... // Set the Fld1 and Fld2 data to the pData // ... // Seek for the first row where the value of the selected column // is dwEmployeeID. hr = pIRowsetIndex->Seek(hAccessor, 1, pData, DBSEEK_FIRSTEQ); if(FAILED(hr)) { goto Exit; } However the Seek function does not working properly. .... From the calling palce the client will pass like index, value1, value 2 and value3...based on it i need to seek and get the data. Anyone know how to seek using composite index? Thanks AKS

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups